Exemple #1
0
 def _join_lance(self, camp):
     npc = self.elements["NPC"]
     npc.relationship.tags.add(gears.relationships.RT_LANCEMATE)
     camp.credits -= self.hire_cost
     effect = plotutility.AutoJoiner(npc)
     effect(camp)
     self.end_plot(camp)
 def t_ENDCOMBAT(self, camp):
     myteam = self.elements["_eteam"]
     if len(myteam.get_members_in_play(camp)) < 1:
         self.obj.win(camp, 100)
     else:
         self.obj.failed = True
     if self.party_member:
         plotutility.AutoJoiner(self.elements["LMNPC"])(camp)
Exemple #3
0
 def custom_init(self, nart):
     npc = nart.camp.egg.seek_dramatis_person(nart.camp, self._is_good_npc,
                                              self)
     if npc:
         plotutility.AutoJoiner(npc)(nart.camp)
     return True
 def _join_lance(self, camp: gears.GearHeadCampaign):
     npc = self.elements["DZ_CONTACT"]
     npc.relationship.tags.add(gears.relationships.RT_LANCEMATE)
     effect = plotutility.AutoJoiner(npc)
     effect(camp)
     camp.num_lancemates += 1
 def t_ENDCOMBAT(self,camp):
     myteam = self.elements["_eteam"]
     if len(myteam.get_active_members(camp)) < 1:
         self.obj.win(camp,100)
     if self.party_member:
         plotutility.AutoJoiner(self.elements["LMNPC"])(camp)