|
|
@ -29,12 +29,14 @@ Quantum.Effect.Create( "equip_potatoe", { |
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = false |
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = false |
|
|
|
end, |
|
|
|
end, |
|
|
|
runtimefunc = function( pl ) |
|
|
|
runtimefunc = function( pl ) |
|
|
|
if( !pl.runtimeEffect_timerActive_equip_potatoe ) then |
|
|
|
if( IsValid( pl ) ) then |
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = true |
|
|
|
if( !pl.runtimeEffect_timerActive_equip_potatoe ) then |
|
|
|
timer.Simple( 1, function() |
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = true |
|
|
|
pl:SetHealth( math.Clamp( pl:Health() + 5, 1, pl:GetMaxHealth() ) ) |
|
|
|
timer.Simple( 1, function() |
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = false |
|
|
|
pl:SetHealth( math.Clamp( pl:Health() + 5, 1, pl:GetMaxHealth() ) ) |
|
|
|
end) |
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = false |
|
|
|
|
|
|
|
end) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end, |
|
|
|
end, |
|
|
|
stopfunc = function( pl ) |
|
|
|
stopfunc = function( pl ) |
|
|
|