playroom优化
This commit is contained in:
parent
0a4b895e14
commit
d464813ed7
@ -30,6 +30,14 @@ func GetUnLockLv() int {
|
||||
return gamedata.GetIntValue(data, "Value")
|
||||
}
|
||||
|
||||
func GetGameOutline() int {
|
||||
data, err := gamedata.GetDataByKey(CFG_PLAYROOM_CONST, "GameOutline")
|
||||
if err != nil {
|
||||
return 999
|
||||
}
|
||||
return gamedata.GetIntValue(data, "Value")
|
||||
}
|
||||
|
||||
func GetOrderStar() int {
|
||||
data, err := gamedata.GetDataByKey(CFG_PLAYROOM_CONST, "Star")
|
||||
if err != nil {
|
||||
|
||||
@ -2941,7 +2941,7 @@ func ReqPlayroomInfo(args []interface{}) error {
|
||||
}
|
||||
PlayerData := G_GameLogicPtr.GetSimplePlayerByUid(Targer)
|
||||
PlayroomMod.SetTarget(Targer)
|
||||
if PlayerData.Loginout < GoUtil.Now()-300 { // todo DEBUG
|
||||
if PlayerData.Loginout < GoUtil.Now()-int64(playroomCfg.GetGameOutline()) { // todo DEBUG
|
||||
PlayroomMod.SetGameId(1)
|
||||
Star := min(500, max(PlayerData.Star/10, 10))
|
||||
ChessMod := player.PlayMod.getChessMod()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user