Skip to content

Commit

Permalink
Merge pull request #3605 from Kherae/master
Browse files Browse the repository at this point in the history
small
  • Loading branch information
sayterdarkwynd authored Nov 15, 2024
2 parents 1d1fd1a + 28260ed commit ebf43ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,9 @@ function closePanel()
pane.dismiss()
end

function uninit()
local oreSlotItem = widget.itemSlotItem("oreSlot")
if oreSlotItem then
player.giveItem(oreSlotItem)
end
end
2 changes: 1 addition & 1 deletion quests/madness/madnessdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ function update(dt)
if self.timerCounterGenes >= (1+afkLvl) then
if afkLvl <= 3 then
self.rewardedGenes = status.stat("isXi")
if status.stat("isXi") then
if self.rewardedGenes>0 then
if self.timerCounterGenes >= (25 - self.rewardedGenes) then
if player.currency("fugeneticmaterial") <= 99 then -- dont generate more unless below 100 genes to prevent abusing for profit
player.addCurrency("fugeneticmaterial", self.rewardedGenes)
Expand Down

0 comments on commit ebf43ab

Please sign in to comment.