|
|
|
@ -29,6 +29,7 @@ Quantum.Effect.Create( "equip_potatoe", { |
|
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = false |
|
|
|
|
end, |
|
|
|
|
runtimefunc = function( pl ) |
|
|
|
|
if( IsValid( pl ) ) then |
|
|
|
|
if( !pl.runtimeEffect_timerActive_equip_potatoe ) then |
|
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = true |
|
|
|
|
timer.Simple( 1, function() |
|
|
|
@ -36,6 +37,7 @@ Quantum.Effect.Create( "equip_potatoe", { |
|
|
|
|
pl.runtimeEffect_timerActive_equip_potatoe = false |
|
|
|
|
end) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end, |
|
|
|
|
stopfunc = function( pl ) |
|
|
|
|
pl:SetMaxHealth( math.Clamp( pl:GetMaxHealth() - 100, 1, pl:GetMaxHealth() ) ) |
|
|
|
|