Converts no slip into a trait (#23140)

* makes noslips work

* trait part

* THE REST

* it didnt conflict too much actually

* this was intended, whoops lol

* no more processing

* consistency

* lewc review

* Apply suggestions from code review

---------

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
BiancaWilkson
2024-01-06 18:29:10 -05:00
committed by GitHub
parent 1a29419228
commit 95c86c5bfc
12 changed files with 41 additions and 25 deletions

View File

@@ -143,10 +143,10 @@
origin_tech = "syndicate=1"
/obj/item/mod/module/noslip/on_suit_activation()
mod.boots.flags |= NOSLIP
ADD_TRAIT(mod.wearer, TRAIT_NOSLIP, UID())
/obj/item/mod/module/noslip/on_suit_deactivation(deleting = FALSE)
mod.boots.flags ^= NOSLIP
REMOVE_TRAIT(mod.wearer, TRAIT_NOSLIP, UID())
//Bite of 87 Springlock - Equips faster, disguised as DNA lock, can block retracting for 10 seconds.
/obj/item/mod/module/springlock/bite_of_87

View File

@@ -57,7 +57,7 @@
. = ..()
if(!.)
return
mod.boots.flags |= NOSLIP
ADD_TRAIT(mod.wearer, TRAIT_NOSLIP, UID())
mod.slowdown += slowdown_active
ADD_TRAIT(mod.wearer, TRAIT_MAGPULSE, "magbooted")
@@ -65,7 +65,7 @@
. = ..()
if(!.)
return
mod.boots.flags ^= NOSLIP
REMOVE_TRAIT(mod.wearer, TRAIT_NOSLIP, UID())
mod.slowdown -= slowdown_active
REMOVE_TRAIT(mod.wearer, TRAIT_MAGPULSE, "magbooted")