You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 regels
674 B

  1. local gulinFunctions=ZPFramework.ZPFrameworkClassImprot("zp_base.luaScript.ZPFunctions")
  2. --获取小家是否可以看牌
  3. function gulinFunctions.getLittleIsCanLookCard()
  4. local roomInfo = app.room.roomInfo;
  5. local jsonInfo = json.decode(roomInfo.strGameInfo)
  6. if jsonInfo then
  7. if getNumBand(jsonInfo.specialRule,0x0020) > 0 then
  8. return true
  9. end
  10. end
  11. return false
  12. end
  13. --获取是否有圈牌
  14. function gulinFunctions.getIsHaveQuanCard()
  15. local roomInfo = app.room.roomInfo;
  16. local jsonInfo = json.decode(roomInfo.strGameInfo)
  17. if jsonInfo then
  18. if getNumBand(jsonInfo.specialRule,0x0400) > 0 then
  19. return true
  20. end
  21. end
  22. return false
  23. end
  24. return gulinFunctions