From 5057ba38131ee264ca26930abf523418eedc2d32 Mon Sep 17 00:00:00 2001 From: evilew Date: Wed, 8 Nov 2023 15:45:07 +0100 Subject: [PATCH] added a cursed fountain Added a fountain that will give you a curse that'll make you larger with each step taken. The curse eventually goes away after enough steps --- GainStation13/code/obj/structure/fountain.dm | 43 +++++++++++++++++++ GainStation13/icons/obj/cursed_fountain.dmi | Bin 0 -> 547 bytes tgstation.dme | 2 +- 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 GainStation13/code/obj/structure/fountain.dm create mode 100644 GainStation13/icons/obj/cursed_fountain.dmi diff --git a/GainStation13/code/obj/structure/fountain.dm b/GainStation13/code/obj/structure/fountain.dm new file mode 100644 index 00000000..b7090bb3 --- /dev/null +++ b/GainStation13/code/obj/structure/fountain.dm @@ -0,0 +1,43 @@ + +/obj/structure/cursedfatfountain + name = "Strange fountain" + desc = "An odd fountain, sparking with foreign magic." + icon = 'GainStation13/icons/obj/cursed_fountain.dmi' + icon_state = "full" + anchored = TRUE + density = TRUE + var/curse_given = 0 + +/mob/living + var/cursed_fat = 0 //decides whether the user is cursed at all (also makes for a fun admin switch) + var/fattening_steps_left = 0 //decides on the lenght of the curse + +/obj/structure/cursedfatfountain/attack_hand(mob/living/user) + . = ..() + if(.) + return + if(curse_given == 1) + to_chat(user, "The fountain seems to deject your hand.") + icon_state = "empty" + return + if (ishuman(user) && user.has_dna()) + user.cursed_fat = 1 + user.fattening_steps_left = 40 + icon_state = "empty" + to_chat(user, "The glittering orange liquid disappears instantly as you touch it. You feel a strange, warm sensation inside, growing stronger the more you move...") + curse_given = 1 + +// /obj/structure/cursedfatfountain/update_icon() +// if(last_process + time_between_uses > world.time) +// icon_state = "full" +// else +// icon_state = "empty" + +/mob/living/carbon/Move(NewLoc, direct) + . = ..() + if(cursed_fat == 1) + fattening_steps_left -= 1 + adjust_fatness(50, FATTENING_TYPE_MAGIC) + + if(fattening_steps_left <= 0) + cursed_fat = 0 diff --git a/GainStation13/icons/obj/cursed_fountain.dmi b/GainStation13/icons/obj/cursed_fountain.dmi new file mode 100644 index 0000000000000000000000000000000000000000..3de10e9aeba119d782ec3f7c6bdbb3cf54dc9099 GIT binary patch literal 547 zcmV+;0^I$HP) zDNYE+4FK|XB#Wn4Mrr^60We8KK~y-6jnXl0gD?~Z;8)3&7)wPDP{Rpg4q(Uw zsaq?-)HN~}h+xfVW$r?HfrPz7#pU|IRX_w=`6oX7>sjalaA$nq?FSw{xeU*Ozq))! zfiDURL%QLS%fL97E(0LC4Ug|mv&8oUX*Z;t64}jCL5ZZzkm8ugW~3X31ZXimjY)i5 zGYc>)#}t^z(RtN0N~!&5Na*-unD|1KfSgyVX=l8nD|^A&jTOb|cBt0P?VUM01Q7M#g4x l*mY-Zw^x4l{ZA>^{0B8fpfza=Mz#O|002ovPDHLkV1k~t=VSl? literal 0 HcmV?d00001 diff --git a/tgstation.dme b/tgstation.dme index e82abcf1..ada99090 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3103,7 +3103,7 @@ #include "GainStation13\code\modules\vending\mealdor.dm" #include "GainStation13\code\obj\items\minor_items.dm" #include "GainStation13\code\obj\structure\calorite_doors.dm" -#include "GainStation13\code\obj\structure\candylight.dm" +#include "GainStation13\code\obj\structure\fountain.dm" #include "GainStation13\code\obj\structure\scale.dm" #include "GainStation13\code\obj\weapons\fatoray.dm" #include "hyperstation\code\__DEFINES\economy.dm"