Files
d5931c5ffe Adds an universal object health system. (#21266)
https://www.youtube.com/watch?v=ZpUYjpKg9KY

As per title. The goal is to add health to most objects in the game and
thus allow them to be dynamically destructible, while also avoiding
shitcode like each structure having its own snowflake health update
proc.

---------

Signed-off-by: Matt Atlas <mattiathebest2000@hotmail.it>
Co-authored-by: Matt Atlas <liermattia@gmail.com>
Co-authored-by: SleepyGemmy <99297919+SleepyGemmy@users.noreply.github.com>
2026-04-16 23:22:08 +00:00

55 lines
1.2 KiB
Plaintext

/mob/living/carbon/alien
name = "La Creatura"
desc = "La creatura. Huh wuh?"
icon = 'icons/mob/npc/alien.dmi'
icon_state = "la_creatura"
pass_flags = PASSTABLE
health = 50
maxhealth = 50
mob_size = 4
var/adult_form
var/icon_dead
var/amount_grown = 0
var/max_grown = 200
var/time_of_birth
var/language
var/death_msg = "lets out a waning guttural screech!"
var/meat_amount = 0
var/meat_type = /obj/item/reagent_containers/food/snacks/xenomeat
icon_dead = "la_creatura_dead"
/mob/living/carbon/alien/Initialize()
. = ..()
time_of_birth = world.time
add_verb(src, /mob/living/proc/ventcrawl)
add_verb(src, /mob/living/proc/hide)
name = "[initial(name)] ([rand(1, 1000)])"
real_name = name
regenerate_icons()
if(language)
add_language(language)
gender = NEUTER
/mob/living/carbon/alien/u_equip(obj/item/W as obj)
return
/mob/living/carbon/alien/get_status_tab_items()
. = ..()
. += "Progress: [amount_grown]/[max_grown]"
/mob/living/carbon/alien/restrained()
return 0
/mob/living/carbon/alien/show_inv(mob/user as mob)
return // Consider adding cuffs and hats to this, for the sake of fun.
/mob/living/carbon/alien/cannot_use_vents()
return