mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
fix magboot module
This commit is contained in:
@@ -135,3 +135,6 @@
|
||||
if(!mod.wearer.equip_to_slot_if_possible(overslot, overslot.slot_flags, qdel_on_fail = FALSE, disable_warning = TRUE))
|
||||
mod.wearer.dropItemToGround(overslot, force = TRUE)
|
||||
overslot = null
|
||||
|
||||
/obj/item/clothing/shoes/mod/negates_gravity()
|
||||
return clothing_flags & NOSLIP
|
||||
|
||||
@@ -51,12 +51,13 @@
|
||||
incompatible_modules = list(/obj/item/mod/module/magboot)
|
||||
cooldown_time = 0.5 SECONDS
|
||||
/// Slowdown added onto the suit.
|
||||
var/slowdown_active = 0.5
|
||||
var/slowdown_active = 2
|
||||
|
||||
/obj/item/mod/module/magboot/on_activation()
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
mod.boots.clothing_flags |= NOSLIP
|
||||
ADD_TRAIT(mod.wearer, TRAIT_NEGATES_GRAVITY, MOD_TRAIT)
|
||||
ADD_TRAIT(mod.wearer, TRAIT_NOSLIPWATER, MOD_TRAIT)
|
||||
mod.slowdown += slowdown_active
|
||||
@@ -67,6 +68,7 @@
|
||||
. = ..()
|
||||
if(!.)
|
||||
return
|
||||
mod.boots.clothing_flags &= ~NOSLIP
|
||||
REMOVE_TRAIT(mod.wearer, TRAIT_NEGATES_GRAVITY, MOD_TRAIT)
|
||||
REMOVE_TRAIT(mod.wearer, TRAIT_NOSLIPWATER, MOD_TRAIT)
|
||||
mod.slowdown -= slowdown_active
|
||||
|
||||
Reference in New Issue
Block a user