mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-26 17:31:58 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user