From dff9a1d3b7f83c8bc2ffd4f432cdfa6fa5f65cd7 Mon Sep 17 00:00:00 2001 From: bgobandit Date: Sun, 27 Dec 2015 16:40:09 -0500 Subject: [PATCH] Adds valentines and candy hearts for Valentine's Day. --- code/modules/events/holiday/vday.dm | 68 ++++++++++++++++++++++++++++ icons/obj/holiday_misc.dmi | Bin 0 -> 288 bytes tgstation.dme | 1 + 3 files changed, 69 insertions(+) create mode 100644 code/modules/events/holiday/vday.dm create mode 100644 icons/obj/holiday_misc.dmi diff --git a/code/modules/events/holiday/vday.dm b/code/modules/events/holiday/vday.dm new file mode 100644 index 0000000000..76c927d1d4 --- /dev/null +++ b/code/modules/events/holiday/vday.dm @@ -0,0 +1,68 @@ +// Valentine's Day events // +// why are you playing spessmens on valentine's day you wizard // + + +// valentine / candy heart distribution // + +/datum/round_event_control/valentines + name = "Valentines!" + holidayID = VALENTINES + typepath = /datum/round_event/valentines + weight = -1 //forces it to be called, regardless of weight + max_occurrences = 1 + earliest_start = 0 + +/datum/round_event/valentines/start() + ..() + for(var/mob/living/carbon/human/H in mob_list) + H.put_in_hands(new /obj/item/weapon/valentine) + var/obj/item/weapon/storage/backpack/b = locate() in H.contents + new /obj/item/weapon/reagent_containers/food/snacks/candyheart(b) + +/datum/round_event/valentines/announce() + priority_announce("It's Valentine's Day! Give a valentine to that special someone!") + +/obj/item/weapon/valentine + name = "valentine" + desc = "A Valentine's card! Wonder what it says..." + icon = 'icons/obj/toy.dmi' + icon_state = "sc_Ace of Hearts_syndicate" // shut up + var/message = "A generic message of love or whatever." + burn_state = FLAMMABLE + w_class = 1 + +/obj/item/weapon/valentine/New() + ..() + message = pick("Roses are red / Violets are good / One day while Andy...", + "My love for you is like the singularity. It cannot be contained.", + "Will you be my lusty xenomorph maid?", + "We go together like the clown and the external airlock.", + "Roses are red, liches are wizards, I love you more than a whole squad of lizards.", + "Be my valentine. Law 2.", + "You must be a mime, because you leave me speechless.", + "We make a better couple than Ian and the HoP." + "You're hotter than a plasma fire in toxins.") + +/obj/item/weapon/valentine/attackby(obj/item/weapon/W, mob/user, params) + if(istype(W, /obj/item/weapon/pen) || istype(W, /obj/item/toy/crayon)) + var/recipient = stripped_input(user, "Who is receiving this valentine?", "To:", null , 20) + var/sender = stripped_input(user, "Who is sending this valentine?", "From:", null , 20) + if(recipient && sender) + name = "valentine - To: [recipient] From [sender]" + ..() + +/obj/item/weapon/reagent_containers/food/snacks/candyheart + name = "candy heart" + icon = 'icons/obj/holiday_misc.dmi' + icon_state = "candyheart" + desc = "A heart-shaped candy that reads: " + list_reagents = list("sugar" = 4) + junkiness = 5 + +/obj/item/weapon/valentine/New() + ..() + desc = pick("A heart-shaped candy that reads: HONK ME", + "A heart-shaped candy that reads: ERP", + "A heart-shaped candy that reads: LEWD", + "A heart-shaped candy that reads: LUSTY", + "A heart-shaped candy that reads: SPESS LOVE") \ No newline at end of file diff --git a/icons/obj/holiday_misc.dmi b/icons/obj/holiday_misc.dmi new file mode 100644 index 0000000000000000000000000000000000000000..b9bffa6231984e01dfa314f4478df61684a8d08c GIT binary patch literal 288 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvi2$Dv*8>L*oQ~g6>=7`>Go#fr z_!@plUEfIQR0$XoLrPyP?DLS$G}iACpfI2 zsPy}n;DV1|pJ;jOYMncCK6pc@!A0W-k95xaXr5#!>gnBKVH{+9+1N{A&Z9|3CWR;j zYg!uWFEvs&-MGS~v)fp8^9l)#j1xy^hE160@`fj z>EaloF)=wo;#EVSBWI|?%@YxfGtWQK(0b9Pb3kq03_TzgTe~DWM4fi{@+i literal 0 HcmV?d00001 diff --git a/tgstation.dme b/tgstation.dme index 3822e2fec1..e38bc50aa9 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -1028,6 +1028,7 @@ #include "code\modules\events\vent_clog.dm" #include "code\modules\events\wormholes.dm" #include "code\modules\events\holiday\halloween.dm" +#include "code\modules\events\holiday\vday.dm" #include "code\modules\events\holiday\xmas.dm" #include "code\modules\events\wizard\aid.dm" #include "code\modules\events\wizard\blobies.dm"