mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 13:01:47 +00:00
- let APowerRegeneration use the Strength property to define the amount of regeneration it gives.
This commit is contained in:
parent
211d293002
commit
1c889dc9fa
2 changed files with 2 additions and 1 deletions
|
@ -1697,7 +1697,7 @@ void APowerRegeneration::DoEffect()
|
|||
{
|
||||
if (Owner != NULL && Owner->health > 0 && (level.time & 31) == 0)
|
||||
{
|
||||
if (P_GiveBody(Owner, 5))
|
||||
if (P_GiveBody(Owner, Strength))
|
||||
{
|
||||
S_Sound(Owner, CHAN_ITEM, "*regenerate", 1, ATTN_NORM );
|
||||
}
|
||||
|
|
|
@ -300,6 +300,7 @@ ACTOR PowerDrain : Powerup native
|
|||
ACTOR PowerRegeneration : Powerup native
|
||||
{
|
||||
Powerup.Duration -120
|
||||
Powerup.Strength 5
|
||||
}
|
||||
|
||||
ACTOR PowerHighJump : Powerup native {}
|
||||
|
|
Loading…
Reference in a new issue