Key refactor. They act as pure "item givers" now.

This commit is contained in:
Mari the Deer 2022-01-23 20:49:20 +01:00
commit 312c433ed3
5 changed files with 28 additions and 67 deletions

View file

@ -3,6 +3,7 @@
extend Class SWWMHandler
{
bool nugflip; // h/a nugget flip-flop spawn counter
bool equinoxhack; // hackaround for UseInventory
private Class<Actor> GetDRLAReplacee( Class<Actor> a )
{
@ -591,7 +592,7 @@ extend Class SWWMHandler
}
else if ( (e.Replacee is 'RedCard') && !(e.Replacee is 'ChexRedCard') )
{
if ( level.GetChecksum() ~== "3805A661D5C4523AFF7BF86991071043" )
if ( !equinoxhack && (level.GetChecksum() ~== "3805A661D5C4523AFF7BF86991071043") )
{
if ( profiling ) checkreplacement_ms += MSTime()-curms;
return; // don't replace red key in Equinox MAP13