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
clean up & remove longfall boots
This commit is contained in:
@@ -214,17 +214,5 @@ GLOBAL_LIST_INIT(bitflags, list(
|
||||
///Turns the dir by 180 degrees
|
||||
#define DIRFLIP(d) turn(d, 180)
|
||||
|
||||
// timed_action_flags parameter for `/proc/do_after_mob`, `/proc/do_mob` and `/proc/do_after`
|
||||
/// Can do the action even if mob moves location
|
||||
#define IGNORE_USER_LOC_CHANGE (1<<0)
|
||||
/// Can do the action even if the target moves location
|
||||
#define IGNORE_TARGET_LOC_CHANGE (1<<1)
|
||||
/// Can do the action even if the item is no longer being held
|
||||
#define IGNORE_HELD_ITEM (1<<2)
|
||||
/// Can do the action even if the mob is incapacitated (ex. handcuffed)
|
||||
#define IGNORE_INCAPACITATED (1<<3)
|
||||
/// Used to prevent important slowdowns from being abused by drugs like kronkaine
|
||||
#define IGNORE_SLOWDOWNS (1<<4)
|
||||
|
||||
/// 33554431 (2^24 - 1) is the maximum value our bitflags can reach.
|
||||
#define MAX_BITFLAG_DIGITS 8
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
///From base of mob/living/MobBump() (mob/living)
|
||||
#define COMSIG_LIVING_MOB_BUMP "living_mob_bump"
|
||||
|
||||
///From base of mob/living/ZImpactDamage() (mob/living, levels, turf/t)
|
||||
#define COMSIG_LIVING_Z_IMPACT "living_z_impact"
|
||||
#define NO_Z_IMPACT_DAMAGE (1<<0)
|
||||
|
||||
@@ -158,9 +158,6 @@
|
||||
#define TRAIT_CALCIUM_HEALER "calcium_healer"
|
||||
#define TRAIT_MAGIC_CHOKE "magic_choke"
|
||||
#define TRAIT_CAPTAIN_METABOLISM "captain-metabolism"
|
||||
/// Prevents plasmamen from self-igniting
|
||||
#define TRAIT_NOSELFIGNITION "no_selfignition"
|
||||
#define TRAIT_NOSELFIGNITION_HEAD_ONLY "no_selfignition_head_only"
|
||||
/// Like antimagic, but doesn't block the user from casting
|
||||
#define TRAIT_ANTIMAGIC_NO_SELFBLOCK "anti_magic_no_selfblock"
|
||||
/// Gives us turf, mob and object vision through walls
|
||||
@@ -171,8 +168,6 @@
|
||||
#define TRAIT_MESON_VISION "meson_vision"
|
||||
/// Gives us Night vision
|
||||
#define TRAIT_TRUE_NIGHT_VISION "true_night_vision"
|
||||
/// Negates our gravity, letting us move normally on floors in 0-g
|
||||
#define TRAIT_NEGATES_GRAVITY "negates_gravity"
|
||||
/// Lets us scan reagents
|
||||
#define TRAIT_REAGENT_SCANNER "reagent_scanner"
|
||||
#define TRAIT_ABDUCTOR_TRAINING "abductor-training"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
#define SHELL_FLAG_CIRCUIT_UNREMOVABLE (1<<0)
|
||||
|
||||
/// Whether a circuit is not able to be modified
|
||||
#define SHELL_FLAG_CIRCUIT_UNMODIFIABLE (1<<5)
|
||||
@@ -26,16 +26,18 @@
|
||||
user.visible_message("<span class='suicide'>[user] is trying to upload [user.p_them()]self into [src]! That's not going to work out well!</span>")
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/aicard/pre_attack(atom/target, mob/living/user, params)
|
||||
/obj/item/aicard/afterattack(atom/target, mob/user, proximity)
|
||||
. = ..()
|
||||
if(!proximity || !target)
|
||||
return
|
||||
if(AI) //AI is on the card, implies user wants to upload it.
|
||||
log_combat(user, AI, "carded", src)
|
||||
target.transfer_ai(AI_TRANS_FROM_CARD, user, AI, src)
|
||||
else //No AI on the card, therefore the user wants to download one.
|
||||
target.transfer_ai(AI_TRANS_TO_CARD, user, null, src)
|
||||
if(AI)
|
||||
log_combat(user, AI, "uploaded", src, "to [target].")
|
||||
return TRUE
|
||||
update_appearance() //Whatever happened, update the card's state (icon, name) to match.
|
||||
return ..()
|
||||
log_combat(user, AI, "carded", src)
|
||||
update_icon() //Whatever happened, update the card's state (icon, name) to match.
|
||||
|
||||
/obj/item/aicard/update_icon()
|
||||
cut_overlays()
|
||||
|
||||
@@ -53,13 +53,7 @@
|
||||
var/atom/movable/A = X
|
||||
if(A == wielder)
|
||||
continue
|
||||
if(isliving(A))
|
||||
var/mob/living/vortexed_mob = A
|
||||
if(vortexed_mob.mob_negates_gravity())
|
||||
continue
|
||||
else
|
||||
vortexed_mob.Paralyze(2 SECONDS)
|
||||
if(!A.anchored && !isobserver(A))
|
||||
if(A && !A.anchored && !ishuman(X))
|
||||
step_towards(A,pull)
|
||||
step_towards(A,pull)
|
||||
step_towards(A,pull)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -137,7 +137,6 @@
|
||||
#include "code\__DEFINES\vote.dm"
|
||||
#include "code\__DEFINES\vv.dm"
|
||||
#include "code\__DEFINES\wall_dents.dm"
|
||||
#include "code\__DEFINES\wiremod.dm"
|
||||
#include "code\__DEFINES\wires.dm"
|
||||
#include "code\__DEFINES\wounds.dm"
|
||||
#include "code\__DEFINES\_flags\_flags.dm"
|
||||
|
||||
Reference in New Issue
Block a user