25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
720 B

  1. local xuyongFunctions=ZPFramework.ZPFrameworkClassImprot("zp_base.luaScript.ZPFunctions")
  2. --获取小家是否可以看牌
  3. function xuyongFunctions.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. --获取是否有圈牌 固定返回true
  14. function xuyongFunctions.getIsHaveQuanCard()
  15. local roomInfo = app.room.roomInfo;
  16. local jsonInfo = json.decode(roomInfo.strGameInfo)
  17. if jsonInfo and jsonInfo.specialRule then
  18. if getNumBand(jsonInfo.specialRule,0x0400) > 0 then
  19. return true
  20. end
  21. end
  22. return true
  23. end
  24. return xuyongFunctions