Goonstation Forums
[Bug] A captain wearing the fancy hat would fail the losehat objective. - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30)
+---- Forum: Implemented (https://forum.ss13.co/forumdisplay.php?fid=31)
+---- Thread: [Bug] A captain wearing the fancy hat would fail the losehat objective. (/showthread.php?tid=6071)



[Bug] A captain wearing the fancy hat would fail the losehat objective. - Erik - 03-11-2016

Initial bugreport: http://forum.ss13.co/showthread.php?tid=5505
Patch: https://gist.github.com/Chnkr/1c739c5707ba42c4b6f6


RE: [Bug] A captain wearing the fancy hat would fail the losehat objective. - magic mountain - 03-11-2016

it'd probably be best for the objective to check whatever hat was worn at round start and ensure it's the same one


RE: [Bug] A captain wearing the fancy hat would fail the losehat objective. - Erik - 03-11-2016

You always start with the "/obj/item/clothing/head/caphat" on your head at roundstart, but players might decide to switch to the other hat shortly after, which lives under "/obj/item/clothing/head/fancy/captain"

I could however refactor the code a bit, and check which hat the player has decided to put on after roundstart.