Skip to content

Commit

Permalink
Merge pull request #141 from Kherae/master
Browse files Browse the repository at this point in the history
Update radienFoodBoost.lua
  • Loading branch information
sayterdarkwynd authored Feb 16, 2019
2 parents afd01c1 + b7bfd46 commit a4e6b1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stats/bonuses/radienFoodBoost.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ end


function update(dt)
self.foodValue = status.resourcePercentage("food")
if status.isResource("food")
self.foodValue = status.resourcePercentage("food")
else
self.foodValue=0.5
end

self.armorTimer = self.armorTimer + 1

Expand Down

0 comments on commit a4e6b1f

Please sign in to comment.