Skip to content

Commit

Permalink
Mutable Appearance Fix + Suits Files Change
Browse files Browse the repository at this point in the history
Fixes a bug in latest BYOND + makes suits not have a confusing name.
  • Loading branch information
Aurrain committed Sep 19, 2024
1 parent 866fbce commit 85b6c78
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions code/datums/mutable_appearance.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@

// Mutable appearances are children of images, just so you know.

/mutable_appearance/New()
..()
plane = FLOAT_PLANE // No clue why this is 0 by default yet images are on FLOAT_PLANE
// And yes this does have to be in the constructor, BYOND ignores it if you set it as a normal var
#if DM_BUILD > 1642
/mutable_appearance/proc/New(mutable_appearance/to_copy)
if(!to_copy)
plane = FLOAT_PLANE
#else
/mutable_appearance/New(mutable_appearance/to_copy)
..()
if(!to_copy)
plane = FLOAT_PLANE
#endif //Fix for broken proc on latest version of BYOND.

// Helper similar to image()
/proc/mutable_appearance(icon, icon_state = "", layer = FLOAT_LAYER, plane = FLOAT_PLANE, color = "#FFFFFF")
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions hailmary.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2021,9 +2021,9 @@
#include "code\modules\clothing\spacesuits\plasmamen.dm"
#include "code\modules\clothing\spacesuits\syndi.dm"
#include "code\modules\clothing\suits\_suits.dm"
#include "code\modules\clothing\suits\arfsuits.dm"
#include "code\modules\clothing\suits\arfsuits_unused.dm"
#include "code\modules\clothing\suits\armor.dm"
#include "code\modules\clothing\suits\bigiron_suits.dm"
#include "code\modules\clothing\suits\bigiron_suits_factions.dm"
#include "code\modules\clothing\suits\bio.dm"
#include "code\modules\clothing\suits\f13armor.dm"
#include "code\modules\clothing\suits\f13armoraccessory.dm"
Expand Down

0 comments on commit 85b6c78

Please sign in to comment.