| | |
| | | def ConditionType_Godweaponlv(curPlayer, curMission, curActionNode):
|
| | | lv = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
|
| | | weapontype = GameWorld.ToIntDef(curActionNode.GetAttribute("weapontype"), 0)
|
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % weapontype) >= lv |
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_GodWeaponLV % weapontype) >= lv
|
| | |
|
| | | ##设置今日活跃度
|
| | | # @param curPlayer 玩家实例
|
| | | # @param curMission 任务实例
|
| | | # @param curActionNode节点信息
|
| | | # @return 返回值无意义
|
| | | # @remarks <Set_Dayactivity key=""/>
|
| | | def DoType_Set_Dayactivity(curPlayer, curMission, curActionNode):
|
| | | key = curActionNode.GetAttribute("key")
|
| | | questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
|
| | | if questID != 0:
|
| | | curMission = curPlayer.FindMission(questID)
|
| | | curMission.SetProperty(key, curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0))
|
| | | return
|
| | |
|
| | | ##今日活跃度判断
|
| | | # @param None
|
| | | # @return None <Check_Dayactivity value="活跃度"/>
|
| | | def ConditionType_Check_Dayactivity(curPlayer, curMission, curActionNode):
|
| | | value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
|
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0) >= value
|