Basically the player becomes a Shinigami, and during this process they receive an Asauchi and a Sihakushyo(Their black robe). Now in the game, there are 2 icons for the main base. One with a sword, and one without. I know this may not be the best way to go about it, but it was fairly easy to do, since there are 2 different ways of running. My main problem is making the Sihakushyo change its way of running to fit the base. I tried overriding it in the client/Move(), but it did not work.(I tried something along the lines of:
#define IS icon_state
client/Move()
for(var/obj/Sihakushyo/S in mob.overlays)
if(mob.swordequipped)
S.IS = "runsword"
)
That code had some parts left out as well.
What am I doing wrong? Is there even a way to achieve this?