Add to moth week holiday: teleporter accidents make you moths (#60284)

This commit is contained in:
Fikou
2021-07-18 09:44:29 +01:00
committed by GitHub
parent d0ef25b12f
commit e0699c1940
3 changed files with 8 additions and 4 deletions
+1
View File
@@ -29,6 +29,7 @@
#define GARBAGEDAY "Garbage Day"
#define MONKEYDAY "Monkey Day"
#define PRIDE_WEEK "Pride Week"
#define MOTH_WEEK "Moth Week"
/*
Days of the week to make it easier to reference them.
+6 -3
View File
@@ -79,10 +79,13 @@
if(ishuman(M))//don't remove people from the round randomly you jerks
var/mob/living/carbon/human/human = M
if(!(human.mob_biotypes & (MOB_ROBOTIC|MOB_MINERAL|MOB_UNDEAD|MOB_SPIRIT)))
if(human.dna && human.dna.species.id != SPECIES_FLY)
var/datum/species/species_to_transform = /datum/species/fly
if(SSevents.holidays && SSevents.holidays[MOTH_WEEK])
species_to_transform = /datum/species/moth
if(human.dna && human.dna.species.id != initial(species_to_transform.id))
to_chat(M, span_hear("You hear a buzzing in your ears."))
human.set_species(/datum/species/fly)
log_game("[human] ([key_name(human)]) was turned into a fly person")
human.set_species(species_to_transform)
log_game("[human] ([key_name(human)]) was turned into a [initial(species_to_transform.name)] through [src].")
human.apply_effect((rand(120 - accuracy * 40, 180 - accuracy * 60)), EFFECT_IRRADIATE, 0)
calibrated = FALSE
+1 -1
View File
@@ -67,7 +67,7 @@
return pick("Stout","Porter","Lager","Ale","Malt","Bock","Doppelbock","Hefeweizen","Pilsner","IPA","Lite") //I'm sorry for the last one
/datum/holiday/nth_week/moth
name = "Moth Week"
name = MOTH_WEEK
begin_week = 3
end_week = 4
begin_month = JULY