Ash Walker Speed Only Works on Lavaland (#22789)

* man signals aint that bad

* gdn/contra review

* contra review 2
This commit is contained in:
matttheficus
2023-10-12 15:27:35 +01:00
committed by GitHub
parent fde04ee997
commit d5f5d1f744
3 changed files with 11 additions and 1 deletions
+1
View File
@@ -312,6 +312,7 @@
for(var/item in src) // Notify contents of Z-transition. This can be overridden if we know the items contents do not care.
var/atom/movable/AM = item
AM.onTransitZ(old_z,new_z)
SEND_SIGNAL(src, COMSIG_MOVABLE_Z_CHANGED)
/mob/living/forceMove(atom/destination)
if(buckled)
@@ -129,13 +129,21 @@
/datum/species/unathi/ashwalker/on_species_gain(mob/living/carbon/human/H)
var/datum/action/innate/ignite/ash_walker/fire = new()
fire.Grant(H)
RegisterSignal(H, COMSIG_MOVABLE_Z_CHANGED, PROC_REF(speedylegs))
/datum/species/unathi/ashwalker/on_species_loss(mob/living/carbon/human/H)
..()
for(var/datum/action/innate/ignite/ash_walker/fire in H.actions)
fire.Remove(H)
UnregisterSignal(H, COMSIG_MOVABLE_Z_CHANGED)
/datum/action/innate/ignite/ash_walker
desc = "You form a fire in your mouth, fierce enough to... light a cigarette."
cooldown_duration = 3 MINUTES
welding_fuel_used = 0 // Ash walkers dont need welding fuel to use ignite
/datum/species/unathi/ashwalker/proc/speedylegs(mob/living/carbon/human/H)
if(is_mining_level(H.z))
speed_mod = initial(speed_mod)
else
speed_mod = 0
@@ -71,7 +71,8 @@
important_info = "Do not leave Lavaland without admin permission. Do not attack the mining outpost without being provoked."
description = "You are an ashwalker, a native inhabitant of Lavaland. Try to survive with nothing but spears and other tribal technology. Bring dead bodies back to your tendril to create more of your kind. You are free to attack miners and other outsiders."
flavour_text = "Your tribe worships the Necropolis. The wastes are sacred ground, its monsters a blessed bounty. \
You have seen lights in the distance... they foreshadow the arrival of outsiders that seek to tear apart the Necropolis and its domain. Fresh sacrifices for your nest."
You have seen lights in the distance... they foreshadow the arrival of outsiders that seek to tear apart the Necropolis and its domain. Fresh sacrifices for your nest. \
Keep in mind - your speed is given to you by the power of the Necropolis, <b>leaving the planet will make your body more lethargic!</b>"
assignedrole = "Ash Walker"
/obj/effect/mob_spawn/human/alive/ash_walker/special(mob/living/carbon/human/new_spawn)