Refactors how movetypes are added and removed, No timers this time. (#55444)

This commit is contained in:
Ghom
2020-12-29 02:57:51 +01:00
committed by GitHub
parent 1f2ea0261d
commit 7bc81e5831
53 changed files with 302 additions and 150 deletions
+2
View File
@@ -1260,6 +1260,8 @@ Traitors and the like can also be revived with the previous role mostly intact.
var/source = "adminabuse"
switch(add_or_remove)
if("Add") //Not doing source choosing here intentionally to make this bit faster to use, you can always vv it.
if(GLOB.movement_type_trait_to_flag[chosen_trait]) //include the required element.
D.AddElement(/datum/element/movetype_handler)
ADD_TRAIT(D,chosen_trait,source)
if("Remove")
var/specific = input("All or specific source ?", "Trait Remove/Add") as null|anything in list("All","Specific")