mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Adds Zombies (Admin-spawn) (#25381)
* fuck it good enough * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * TRIPLE-REVIEW * this should do it * wow * bruh * FIX * fix * yeah * sirryan review * aaaaa * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com> --------- Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -722,6 +722,50 @@
|
||||
name = "paper - 'Delivery Note'"
|
||||
info = "<i>Hey sweetie! The boss wants you to have some friends. I couldn't get you a real suit, but I found this in a cosplay shop! The bees surely won't see through your IMPECCABLE disguise!<br><br>xoxo,<br>george ♥</i><br><br>- What the fuck. I'm airlocking him tomorrow."
|
||||
|
||||
/obj/item/paper/zombie_cure
|
||||
name = "paper - 'Research on Zombies'"
|
||||
|
||||
/obj/item/paper/zombie_cure/Initialize(mapload)
|
||||
. = ..()
|
||||
return INITIALIZE_HINT_LATELOAD // Make sure reagents appear before this paper
|
||||
|
||||
/obj/item/paper/zombie_cure/LateInitialize()
|
||||
. = ..()
|
||||
var/list/zombie_cure_reactions = list()
|
||||
for(var/id in GLOB.chemical_reactions_list)
|
||||
for(var/datum/chemical_reaction/zombie/reaction in GLOB.chemical_reactions_list[id])
|
||||
zombie_cure_reactions["[reaction.cure_level]"] = reaction // we use string keys here so we can measure how many cures there are
|
||||
|
||||
if(length(zombie_cure_reactions) != 4)
|
||||
stack_trace("GLOB.chemical_reactions_list only had [length(zombie_cure_reactions)] zombie cure reactions, when it should have had 4")
|
||||
|
||||
var/list/info_builder = list(
|
||||
"I've done my best to cure them but... I'm out of time. I'd rather die than be bitten and turn into one of them. Below is a compilation of my research of the virus... Good luck.<br>"
|
||||
)
|
||||
for(var/counter in list("1", "2", "3", "4"))
|
||||
var/datum/chemical_reaction/zombie/level = zombie_cure_reactions[counter]
|
||||
if(!level)
|
||||
continue
|
||||
info_builder += "<b><font size='4'>[level.name]</font></b><br>"
|
||||
if(counter == "4")
|
||||
var/datum/reagent/reagent_type
|
||||
for(var/reagent in level.required_reagents)
|
||||
if(reagent == "blood")
|
||||
continue
|
||||
reagent_type = GLOB.chemical_reagents_list[reagent]
|
||||
break
|
||||
info_builder += "I wasn't able to finalize this final Omega sequence. But I know it must contain [reagent_type.name]."
|
||||
break
|
||||
info_builder += "<ul>"
|
||||
for(var/reagent in level.required_reagents)
|
||||
if(reagent == "blood")
|
||||
continue
|
||||
var/datum/reagent/reagent_type = GLOB.chemical_reagents_list[reagent]
|
||||
info_builder += "<li>[reagent_type.name]"
|
||||
info_builder += "</ul><br>"
|
||||
|
||||
info = info_builder.Join("")
|
||||
|
||||
/obj/item/paper/evilfax
|
||||
name = "Centcomm Reply"
|
||||
info = ""
|
||||
|
||||
Reference in New Issue
Block a user