Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Marx Mustermann committed Jun 14, 2024
1 parent 977c1c1 commit ac1548c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/itemFolder/functional/shrine.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def dispenseRewards(self,extraInfo):
reg_out = re.match(regex,extraInfo["rewardType"])
if reg_out != None:
text = "You spawned a clone with the duty " + reg_out.group(1)
spawning_result = self.spawnNPC(character,True,reg_out)
spawning_result = self.spawnNPC(character,True,reg_out.group(1))

if extraInfo["rewardType"] == "spawn scrap":
self.spawnScrap(character)
Expand Down Expand Up @@ -698,7 +698,11 @@ def dispenseRewards(self,extraInfo):
character.addMessage("not enough mana for spawning npc")

def spawnNPC(self, character, isBurnedIn: bool = False, duty: str = "") -> bool:
cost = self.getCharacterSpawningCost(character)
if isBurnedIn:
cost = self.getBurnedInCharacterSpawningCost(character)
else:
cost = self.getCharacterSpawningCost(character)

glassHeartRebate = self.get_glass_heart_rebate()
mana = self.getTerrain().mana

Expand Down

0 comments on commit ac1548c

Please sign in to comment.