clean up & remove longfall boots
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#define MOD_ACTIVATION_STEP_FLAGS IGNORE_USER_LOC_CHANGE|IGNORE_TARGET_LOC_CHANGE|IGNORE_HELD_ITEM|IGNORE_INCAPACITATED
|
||||
|
||||
/// Creates a radial menu from which the user chooses parts of the suit to deploy/retract. Repeats until all parts are extended or retracted.
|
||||
/obj/item/mod/control/proc/choose_deploy(mob/user)
|
||||
if(!length(mod_parts))
|
||||
@@ -246,5 +244,3 @@
|
||||
for(var/obj/item/part in mod_parts)
|
||||
seal_part(part, seal = TRUE)
|
||||
finish_activation(on = TRUE)
|
||||
|
||||
#undef MOD_ACTIVATION_STEP_FLAGS
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
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
|
||||
mod.wearer.update_gravity(mod.wearer.has_gravity())
|
||||
@@ -69,7 +68,6 @@
|
||||
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
|
||||
mod.wearer.update_gravity(mod.wearer.has_gravity())
|
||||
|
||||
@@ -319,31 +319,7 @@
|
||||
drain_power(use_power_cost)
|
||||
return dispensed
|
||||
|
||||
///Longfall - Nullifies fall damage, removing charge instead.
|
||||
/obj/item/mod/module/longfall
|
||||
name = "MOD longfall module"
|
||||
desc = "Useful for protecting both the suit and the wearer, \
|
||||
utilizing commonplace systems to convert the possible damage from a fall into kinetic charge, \
|
||||
as well as internal gyroscopes to ensure the user's safe falling. \
|
||||
Useful for mining, monorail tracks, or even skydiving!"
|
||||
icon_state = "longfall"
|
||||
complexity = 1
|
||||
use_power_cost = DEFAULT_CHARGE_DRAIN * 5
|
||||
incompatible_modules = list(/obj/item/mod/module/longfall)
|
||||
|
||||
/obj/item/mod/module/longfall/on_suit_activation()
|
||||
RegisterSignal(mod.wearer, COMSIG_LIVING_Z_IMPACT, .proc/z_impact_react)
|
||||
|
||||
/obj/item/mod/module/longfall/on_suit_deactivation(deleting = FALSE)
|
||||
UnregisterSignal(mod.wearer, COMSIG_LIVING_Z_IMPACT)
|
||||
|
||||
/obj/item/mod/module/longfall/proc/z_impact_react(datum/source, levels, turf/fell_on)
|
||||
if(!drain_power(use_power_cost*levels))
|
||||
return
|
||||
new /obj/effect/temp_visual/mook_dust(fell_on)
|
||||
mod.wearer.Stun(levels * 1 SECONDS)
|
||||
to_chat(mod.wearer, span_notice("[src] protects you from the damage!"))
|
||||
return NO_Z_IMPACT_DAMAGE
|
||||
///Longfall
|
||||
|
||||
///Thermal Regulator - Naw.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user