3114 子 任务 / 【后端】增加解锁被动技能孔的接口
| | |
| | | curPlayer.SetVisible(False)
|
| | | curPlayer.SetSight(0)
|
| | | return |
| | |
|
| | |
|
| | | # 被动技能孔
|
| | | def DoType_Open_Skill_Slots(curPlayer, curMission, curActionNode):
|
| | | # 开孔
|
| | | slotIndex = GameWorld.ToIntDef(curActionNode.GetAttribute("value"), 0)
|
| | | mission_1 = QuestCommon.GetCommonMission(curPlayer)
|
| | | if not mission_1:
|
| | | return
|
| | |
|
| | | mission_1.SetProperty("OpenSkillSlots", pow(2, slotIndex)|mission_1.GetProperty("OpenSkillSlots"))
|
| | | |
| | | return
|
| | |
|
| | |
|
| | |
| | | if not mission_1:
|
| | | return
|
| | |
|
| | | if int(strIndex) > mission_1.GetProperty("OpenSkillSlots"):
|
| | | if (pow(2, int(strIndex)) & mission_1.GetProperty("OpenSkillSlots")) == 0:
|
| | | return
|
| | |
|
| | | PlayerControl.NomalDictSetProperty(curPlayer,
|