mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 15:08:02 +01:00
@@ -9,7 +9,7 @@ RESTRICT_TYPE(/datum/antagonist/zombie)
|
||||
clown_removal_text = "You feel funnier again."
|
||||
wiki_page_name = "Zombie"
|
||||
var/list/old_languages = list() // someone make this better to prevent langs changing if species changes while zombie somehow
|
||||
var/static/list/zombie_traits = list(TRAIT_LANGUAGE_LOCKED, TRAIT_GOTTAGOSLOW, TRAIT_ABSTRACT_HANDS, TRAIT_SLOW_GRABBER, TRAIT_NOBREATH)
|
||||
var/static/list/zombie_traits = list(TRAIT_LANGUAGE_LOCKED, TRAIT_GOTTAGOSLOW, TRAIT_ABSTRACT_HANDS, TRAIT_NOBREATH)
|
||||
var/datum/unarmed_attack/claws/claw_attack
|
||||
|
||||
// possibly upgrades for the zombies after eating brains? Better vision (/datum/action/changeling/augmented_eyesight), better weapons (armblade), better infection, more inhereint armor (physiology)
|
||||
|
||||
@@ -62,18 +62,20 @@
|
||||
|
||||
/obj/item/zombie_claw/Initialize(mapload, new_parent_spell)
|
||||
. = ..()
|
||||
parent_spell = new_parent_spell
|
||||
RegisterSignal(parent_spell.action.owner, COMSIG_MOB_WILLINGLY_DROP, PROC_REF(dispel))
|
||||
if(new_parent_spell)
|
||||
parent_spell = new_parent_spell
|
||||
RegisterSignal(parent_spell.action.owner, COMSIG_MOB_WILLINGLY_DROP, PROC_REF(dispel))
|
||||
|
||||
/obj/item/zombie_claw/proc/dispel(mob/user)
|
||||
if(user && user.get_active_hand() == src)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/zombie_claw/Destroy()
|
||||
UnregisterSignal(parent_spell.action.owner, COMSIG_MOB_WILLINGLY_DROP)
|
||||
if(parent_spell)
|
||||
parent_spell.our_claws -= src
|
||||
parent_spell = null
|
||||
UnregisterSignal(parent_spell.action.owner, COMSIG_MOB_WILLINGLY_DROP)
|
||||
if(parent_spell)
|
||||
parent_spell.our_claws -= src
|
||||
parent_spell = null
|
||||
return ..()
|
||||
|
||||
/obj/item/zombie_claw/customised_abstract_text(mob/living/carbon/owner)
|
||||
|
||||
Reference in New Issue
Block a user