Skip to content

Commit

Permalink
Fix shield recharge typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNukealizer authored and aeoncleanse committed Sep 4, 2017
1 parent df0c035 commit b4eae75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/shield.lua
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ Shield = Class(moho.shield_methods, Entity) {
while curProgress < time do
local fraction = self.Owner:GetResourceConsumed()
curProgress = curProgress + (fraction / 10)
curProgress = math.min(curProgress, rechargeTime)
curProgress = math.min(curProgress, time)

local workProgress = curProgress / rechargeTime
local workProgress = curProgress / time

self:UpdateShieldRatio(workProgress)
WaitTicks(1)
Expand Down

0 comments on commit b4eae75

Please sign in to comment.