| | |
| | | value = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
|
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Activity_TotalPoint, 0) >= value
|
| | |
|
| | | ##活跃放置判断可否领奖
|
| | | # @param None
|
| | | # @return None <Check_Activityplacereward />
|
| | | def ConditionType_Check_Activityplacereward(curPlayer, curMission, curActionNode):
|
| | | return curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ActivityPlaceRewardCount) > 0
|
| | |
|
| | | ##设置当前货币类型对应值
|
| | | # @param curPlayer 玩家实例
|
| | | # @param curMission 任务实例
|
| | | # @param curActionNode节点信息
|
| | | # @return 返回值无意义
|
| | | # @remarks <Set_Money key="任务存值key名" moneytype="货币类型"/>
|
| | | def DoType_Set_Money(curPlayer, curMission, curActionNode):
|
| | | key = curActionNode.GetAttribute("key")
|
| | | moneytype = GameWorld.ToIntDef(curActionNode.GetAttribute("moneytype"), 0)
|
| | | if not moneytype:
|
| | | return
|
| | | questID = GameWorld.ToIntDef(curActionNode.GetAttribute("id"), 0)
|
| | | if questID != 0:
|
| | | curMission = curPlayer.FindMission(questID)
|
| | | curMission.SetProperty(key, PlayerControl.GetMoney(curPlayer, moneytype))
|
| | | return
|
| | |
|
| | | ##设置仙宝寻主领奖进度
|
| | | # @param curPlayer 玩家实例
|
| | | # @param curMission 任务实例
|