mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
special_role/objective refactor
Refactored most instances of special_role setting/checking to use new SPECIAL_ROLE_X defines in code/__DEFINES/gamemode.dm Removed relative pathing from objective.dm and split large if statements into multiple, plus a bunch of styling fixes Refactored every instance of `istype(ticker.mode` into a GAMEMODE_IS_X define in code/__DEFINES/gamemode.dm. Done primarily for when someone gets around to making gamemode code less AWFUL
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
//ticker.mode:implanter[user.mind] += H.mind
|
||||
ticker.mode:implanter[ref] = implanters
|
||||
ticker.mode.traitors += H.mind
|
||||
H.mind.special_role = "traitor"
|
||||
H.mind.special_role = SPECIAL_ROLE_TRAITOR
|
||||
to_chat(H, "<span class='warning'><B>You're now completely loyal to [user.name]!</B> You now must lay down your life to protect them and assist in their goals at any cost.</span>")
|
||||
var/datum/objective/protect/mindslave/MS = new
|
||||
MS.owner = H.mind
|
||||
|
||||
Reference in New Issue
Block a user