Adds wikipage to zombie antag datum + minor fix (#25712)

* Adds wikipage to zombie antag datum + minor fix

* oops

* okay send it
This commit is contained in:
Contrabang
2024-05-31 20:25:12 +00:00
committed by GitHub
parent c234dc3192
commit efd75cda2b
5 changed files with 30 additions and 1 deletions
+4
View File
@@ -31,9 +31,13 @@
if(!..())
return FALSE
if(HAS_TRAIT(affected_mob, TRAIT_I_WANT_BRAINS) || affected_mob.mind?.has_antag_datum(/datum/antagonist/zombie))
SSticker.mode.zombie_infected -= affected_mob
if(affected_mob.reagents.has_reagent("zombiecure4"))
return
handle_rot(TRUE)
stage = 7
return FALSE
SSticker.mode.zombie_infected |= affected_mob
switch(stage)
if(1) // cured by lvl 1 cure
if(prob(4))
+5
View File
@@ -90,6 +90,11 @@
/// A list of all the minds that have the ERT special role
var/list/datum/mind/ert = list()
/// A list of all minds that are zombies
var/list/datum/mind/zombies = list()
/// A list of all minds that are infected with the zombie virus, but aren't zombies yet
var/list/datum/mind/zombie_infected = list()
/datum/game_mode/proc/announce() //to be calles when round starts
to_chat(world, "<B>Notice</B>: [src] did not define announce()")
+1 -1
View File
@@ -543,7 +543,7 @@
<li>Chlorine Trifluoride</li>
<li>Sorium</li>
<li>"????" Reagent</li>
<li>A ranesp</li>
<li>Aranesp</li>
</ul>
</li>
</ul>
+13
View File
@@ -470,6 +470,12 @@
if(length(SSticker.mode.eventmiscs))
dat += check_role_table("Event Roles", SSticker.mode.eventmiscs)
if(length(SSticker.mode.zombies))
dat += check_role_table("Zombies", SSticker.mode.zombies)
if(length(SSticker.mode.zombie_infected))
dat += check_role_table_mob("Pre-zombie infected", SSticker.mode.zombie_infected)
if(length(GLOB.ts_spiderlist))
var/list/spider_minds = list()
for(var/mob/living/simple_animal/hostile/poison/terror_spider/S in GLOB.ts_spiderlist)
@@ -529,3 +535,10 @@
txt += "</tr>"
return txt
/datum/admins/proc/check_role_table_mob(name, list/members, show_objectives=1)
var/txt = "<br><table cellspacing=5><tr><td><b>[name]</b></td><td></td></tr>"
for(var/mob/M in members)
txt += check_role_table_row(M, show_objectives)
txt += "</table>"
return txt
@@ -7,6 +7,7 @@ RESTRICT_TYPE(/datum/antagonist/zombie)
special_role = SPECIAL_ROLE_ZOMBIE
clown_gain_text = "B-Braaaaaains... Honk..."
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)
var/datum/unarmed_attack/claws/claw_attack
@@ -27,6 +28,12 @@ RESTRICT_TYPE(/datum/antagonist/zombie)
owner.RemoveSpell(/datum/spell/zombie_claws)
return ..()
/datum/antagonist/zombie/add_owner_to_gamemode()
SSticker.mode.zombies |= owner
/datum/antagonist/zombie/remove_owner_from_gamemode()
SSticker.mode.zombies -= owner
/datum/antagonist/zombie/greet()
var/list/messages = list()
. = messages