clean up & remove longfall boots

This commit is contained in:
Jerry Wester
2022-12-19 23:07:06 -07:00
parent b1b4f96053
commit d3c72669d9
12 changed files with 9 additions and 78 deletions
-4
View File
@@ -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())
+1 -25
View File
@@ -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.
@@ -306,14 +306,6 @@
build_type = PROTOLATHE
departmental_flags = DEPARTMENTAL_FLAG_MEDICAL
/datum/design/module/mod_longfall
name = "Longfall Module"
id = "mod_longfall"
materials = list(/datum/material/iron = 1000)
build_path = /obj/item/mod/module/longfall
build_type = PROTOLATHE
departmental_flags = DEPARTMENTAL_FLAG_CARGO
/datum/design/module/mod_bikehorn
name = "Bike Horn Module"
id = "mod_bikehorn"
@@ -14,7 +14,6 @@
"mod_welding",
"mod_mouthhole",
"mod_flashlight",
"mod_longfall",
)
/datum/techweb_node/mod_advanced