How to make player characters keep their equipment after death?
if( _CritCanDropItemsOnDead( cr ) ) { Map@ dropMap = cr.GetMap(); Item@[] items; cr.GetItems( -1, items ); // Disable drop of hidden items and delete gag items (sandbags) for( uint i = 0, j = items.length(); i < j; i++ ) { if( FLAG( items[ i ].Flags, ITEM_GAG ) ) { DeleteItem( items[ i ] ); @items[ i ] = null; } else if( FLAG( items[ i ].Flags, ITEM_HIDDEN ) ) { @items[ i ] = null; } } // Drop if( valid( dropMap ) ) MoveItems( items, dropMap, cr.HexX, cr.HexY ); else DeleteItems( items ); }