mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] The Bigger They Are, The Harder They Fall (#11856)
Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
273cc20cd9
commit
c963d7d54b
@@ -737,6 +737,21 @@
|
||||
playsound(H, "rustle", 25, 1)
|
||||
return TRUE
|
||||
|
||||
if(HAS_TRAIT(src, TRAIT_HEAVY_LANDING))
|
||||
|
||||
if(!silent)
|
||||
to_chat(H, span_danger("You land with a heavy crash!"))
|
||||
landing.visible_message(span_danger(span_bold("\The [H]") + " crashes down from above!"))
|
||||
playsound(H, 'sound/effects/meteorimpact.ogg', 75, TRUE, 3)
|
||||
for(var/i = 1 to 10)
|
||||
H.adjustBruteLoss(rand((0), (10)))
|
||||
H.Weaken(20)
|
||||
H.updatehealth()
|
||||
if(istype(landing, /turf/simulated/floor) && prob(50))
|
||||
var/turf/simulated/floor/our_crash = landing
|
||||
our_crash.break_tile()
|
||||
return TRUE
|
||||
|
||||
return FALSE
|
||||
|
||||
/datum/species/proc/post_spawn_special(mob/living/carbon/human/H)
|
||||
|
||||
@@ -623,6 +623,17 @@
|
||||
activation_message= span_cult(span_bold("What a terrible night to have a curse!"))
|
||||
primitive_expression_messages=list("unluckily stubs their toe!")
|
||||
|
||||
/datum/trait/negative/heavy_landing
|
||||
name = "Heavy Landing"
|
||||
desc = "Your heavy frame causes you to crash heavily when falling from heights. The bigger they are, the harder they fall!"
|
||||
cost = -1
|
||||
var_changes = list("soft_landing" = FALSE) //override soft landing if the species would otherwise start with it
|
||||
custom_only = FALSE
|
||||
excludes = list(/datum/trait/positive/soft_landing)
|
||||
|
||||
/datum/trait/negative/heavy_landing/apply(datum/species/S, mob/living/carbon/human/H, trait_prefs)
|
||||
..()
|
||||
ADD_TRAIT(H, TRAIT_HEAVY_LANDING, ROUNDSTART_TRAIT)
|
||||
|
||||
/*
|
||||
* So, I know what you're thinking.
|
||||
|
||||
@@ -214,6 +214,7 @@
|
||||
cost = 1
|
||||
var_changes = list("soft_landing" = TRUE)
|
||||
custom_only = FALSE
|
||||
excludes = list(/datum/trait/negative/heavy_landing)
|
||||
|
||||
/*
|
||||
/datum/trait/positive/hardfeet
|
||||
|
||||
Reference in New Issue
Block a user