Backports the new zombification mechanics from the Konyang zombie event. (#18710)

* Reorder parasites

* sounds

* organ defines, dmdocs

* maiming stuff

* undead changes, abilities

* hylemnomil, undead sprites

* antibodies

* antibody extractor code

* icons

* antibody fixes

* antibodies vial, rock break sfx

* You're all going to die down here.

* hylemnomilz eta vial and attributions

* zombified organs can't be removed

* hylemnomil zeta edits

* fixes

* lmao

* easier check

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-03-24 14:04:52 +00:00
committed by GitHub
co-authored by Matt Atlas
parent ee81fc9b24
commit 82beece3db
37 changed files with 1423 additions and 618 deletions
@@ -0,0 +1,87 @@
/obj/item/stack/barricade
name = "metal barricade kit"
desc = "A kit of metal, pipes, nuts, and bolts. You can make a barricade with this."
singular_name = "barricade kit"
max_amount = 5
icon = 'icons/obj/barricade_stacks.dmi'
icon_state = "steel-kit"
w_class = ITEMSIZE_SMALL
matter = list(DEFAULT_WALL_MATERIAL = 650, MATERIAL_PHORON = 100, MATERIAL_PLASTEEL = 150)
var/barricade_name = "steel"
var/barricade_type = /obj/structure/barricade/metal
var/build_sound = 'sound/effects/clang.ogg'
/obj/item/stack/barricade/attack_self(mob/living/user)
..()
add_fingerprint(user)
if(!isturf(user.loc))
return
if(istype(user.loc, /turf/space))
to_chat(user, SPAN_WARNING("The barricade must be constructed on a proper surface!"))
return
user.visible_message(SPAN_NOTICE("[user] starts assembling a [barricade_name] barricade."),
SPAN_NOTICE("You start assembling a barricade."))
if(!do_after(user, 3 SECONDS, do_flags = DO_REPAIR_CONSTRUCT))
return
for(var/obj/O in user.loc) //Objects, we don't care about mobs. Turfs are checked elsewhere
if(O.density)
if(!(O.atom_flags & ATOM_FLAG_CHECKS_BORDER) || O.dir == user.dir)
return
var/obj/structure/barricade/SB = new barricade_type(user.loc, user, user.dir)
user.visible_message(SPAN_NOTICE("[user] assembles a [barricade_name] barricade."),
SPAN_NOTICE("You assemble a [barricade_name] barricade."))
SB.set_dir(user.dir)
SB.add_fingerprint(user)
playsound(SB, build_sound)
use(1)
/obj/item/stack/barricade/random/Initialize(mapload)
. = ..()
amount = rand(1, 5)
update_icon()
/obj/item/stack/barricade/full/Initialize(mapload)
. = ..()
amount = 5
update_icon()
/obj/item/stack/barricade/plasteel
name = "plasteel barricade kit"
desc = "A kit of plasteel, pipes, nuts, and bolts. You can make a barricade with this."
barricade_name = "plasteel"
barricade_type = /obj/structure/barricade/plasteel
icon_state = "plasteel-kit"
/obj/item/stack/barricade/plasteel/random/Initialize(mapload)
. = ..()
amount = rand(1, 5)
update_icon()
/obj/item/stack/barricade/plasteel/full/Initialize(mapload)
. = ..()
amount = 5
update_icon()
/obj/item/stack/barricade/wood
name = "wooden barricade kit"
desc = "A kit of wooden planks, nails, and probably something to use as a hammer. You can make a barricade with this."
barricade_name = "wood"
barricade_type = /obj/structure/barricade/wooden
icon_state = "wood-kit"
build_sound = 'sound/effects/woodhit.ogg'
/obj/item/stack/barricade/wood/random/Initialize(mapload)
. = ..()
amount = rand(1,5)
update_icon()
/obj/item/stack/barricade/wood/full/Initialize(mapload)
. = ..()
amount = 5
update_icon()
@@ -395,22 +395,22 @@
icon_state = initial(icon_state) +"_locked"
///Zombie-producing grenade
/obj/item/grenade/chem_grenade/trioxin
name = "trioxin grenade"
desc = "Concentrated trioxin. The lab really cooked for this one."
/obj/item/grenade/chem_grenade/hylemnomil
name = "hylemnomil grenade"
desc = "Concentrated hylemnomil. The lab really cooked for this one."
stage = 2
path = 1
/obj/item/grenade/chem_grenade/trioxin/Initialize()
/obj/item/grenade/chem_grenade/hylemnomil/Initialize()
. = ..()
var/obj/item/reagent_containers/glass/beaker/large/B1 = new(src)
var/obj/item/reagent_containers/glass/beaker/large/B2 = new(src)
B1.reagents.add_reagent(/singleton/reagent/phosphorus, 40)
B1.reagents.add_reagent(/singleton/reagent/potassium, 40)
B1.reagents.add_reagent(/singleton/reagent/toxin/trioxin, 40)
B1.reagents.add_reagent(/singleton/reagent/toxin/hylemnomil, 40)
B2.reagents.add_reagent(/singleton/reagent/sugar, 40)
B2.reagents.add_reagent(/singleton/reagent/toxin/trioxin, 80)
B2.reagents.add_reagent(/singleton/reagent/toxin/hylemnomil, 80)
detonator = new/obj/item/device/assembly_holder/timer_igniter(src)