fix magboot module

This commit is contained in:
Jerry Wester
2022-12-14 21:57:39 -07:00
parent 861575a75f
commit b7616a84c6
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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