"Demoslayer" fun option (enemies drop health).

This commit is contained in:
Mari the Deer 2021-10-22 17:26:48 +02:00
commit 883e770899
8 changed files with 144 additions and 3 deletions

View file

@ -138,6 +138,7 @@ Class SWWMHealth : Inventory abstract
newdamage = newdamage-GetDefaultByType(giveme).Amount;
if ( newdamage < 0 ) Owner.GiveBody(-newdamage,GetDefaultByType(giveme).MaxAmount);
newdamage = max(0,newdamage);
if ( !morethanonce ) SWWMHandler.HealthFlash(Owner.PlayerNumber());
AutoUseExtra(morethanonce);
morethanonce = true;
Amount--;