From 5024dbb6f1bb317632bad39906695185fdfd9245 Mon Sep 17 00:00:00 2001
From: Metis <100518708+sheepishgoat@users.noreply.github.com>
Date: Sat, 25 May 2024 04:32:03 -0400
Subject: [PATCH] spells
adds in new spells
---
.../code/mechanics/fattening_trap.dm | 27 +++++++++++++++
GainStation13/code/mechanics/spells.dm | 31 ++++++++++++++++++
GainStation13/icons/obj/structure/traps.dmi | Bin 0 -> 765 bytes
tgstation.dme | 1 +
4 files changed, 59 insertions(+)
create mode 100644 GainStation13/code/mechanics/fattening_trap.dm
create mode 100644 GainStation13/icons/obj/structure/traps.dmi
diff --git a/GainStation13/code/mechanics/fattening_trap.dm b/GainStation13/code/mechanics/fattening_trap.dm
new file mode 100644
index 00000000..6a43ffe7
--- /dev/null
+++ b/GainStation13/code/mechanics/fattening_trap.dm
@@ -0,0 +1,27 @@
+/obj/structure/trap/fattening
+ name = "fattening trap"
+ desc = "A trap that ensures you won't be stepping around for much longer."
+ icon = 'GainStation13/icons/obj/structure/traps.dmi'
+ icon_state = "trap-fattening"
+
+ var/fattening_amount = 250 // Using a variable incase we want to have a stronger version.
+ // This is at half of the power of the singe-use cannonshot fatray.
+
+/obj/structure/trap/fattening/trap_effect(mob/living/carbon/crosser)
+ if(ishuman(crosser))
+ to_chat(crosser, "You feel heavier!")
+ crosser.adjust_fatness(fattening_amount, FATTENING_TYPE_MAGIC)
+
+/obj/structure/trap/belch
+ name = "belch trap"
+ desc = "A trap that forcefully releases all the air in your stomach."
+ icon = 'GainStation13/icons/obj/structure/traps.dmi'
+ icon_state = "trap-belching"
+
+/obj/structure/trap/belch/trap_effect(mob/living/crosser)
+ if(crosser?.client?.prefs.weight_gain_chems)
+ to_chat(crosser, "You feel all of the air leave your stomach!")
+ crosser.emote(pick("belch","burp"))
+
+ crosser.Knockdown(500)
+
\ No newline at end of file
diff --git a/GainStation13/code/mechanics/spells.dm b/GainStation13/code/mechanics/spells.dm
index 2a6ba67c..198bc0bf 100644
--- a/GainStation13/code/mechanics/spells.dm
+++ b/GainStation13/code/mechanics/spells.dm
@@ -85,6 +85,27 @@
user.adjust_fatness(-weight_to_add, FATTENING_TYPE_MAGIC)
+/obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat
+ name = "Fat Traps!"
+ desc = "Summon a number of traps to fatten your enemies."
+ action_icon = 'GainStation13/icons/obj/structure/traps.dmi'
+ action_icon_state = "trap-fattening"
+
+ clothes_req = FALSE
+ summon_type = list(
+ /obj/structure/trap/fattening
+ )
+
+ summon_amt = 4
+
+/obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat/belch
+ name = "Belch Traps!"
+ desc = "Summon a number of traps to force your enemies to belch."
+ action_icon_state = "trap-belching"
+ summon_type = list(
+ /obj/structure/trap/belch
+ )
+
///Spellbooks
/obj/item/book/granter/spell/fattening
name = "fattening tome"
@@ -108,3 +129,13 @@
spellname = "weight steal"
icon_state = "steal_weight"
desc = "This book feels warm to the touch."
+
+/obj/item/book/granter/spell/fattening/traps
+ name = "fattening trap tome"
+ spell = /obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat
+ spellname = "fattening traps"
+
+/obj/item/book/granter/spell/fattening/belch
+ name = "belch trap tome"
+ spell = /obj/effect/proc_holder/spell/aoe_turf/conjure/the_traps/fat/belch
+ spellname = "belch traps"
diff --git a/GainStation13/icons/obj/structure/traps.dmi b/GainStation13/icons/obj/structure/traps.dmi
new file mode 100644
index 0000000000000000000000000000000000000000..a6a3457eba3563a4015f0f363a854ee71943f260
GIT binary patch
literal 765
zcmV0F45l@)XMe0004WQchCV=-0C=2J
zR&a84_w-Y6@%7{?OD!tS%+FJ>RWQ*r;NmRLOex6#a*U0*I5Sc+(=$pSoZ^zil2jm5
zsiY{eKsPP1q$D*jGcR3>2<;
z8!K&0!{8zS00I?BL_t(Ija8G2tt=@FM9n9F#t~p5XbA#9GWo~!j_J8t?Wli@3)_XO
zL`0HF9;3^U?^j&vIa|(eE&UnRnvRse^?r}fxlXCyIzNLbn30}X*Y^+wbISVxaw9)g
zTJM3Vb&{VdbMHW8F{KO;-bO%tQ3eQa2cWsde(LiJGAt*D-1pwB2
z>NZ+~V@g?l@3Q^O3CB`^TemF3Om###0AA&|uXUow0JLDyn%#kDP^X7E{SG7mkQi!e
zA&CG$;w)btlK23`n{kct0fZXE5{T0krjXzS`C`K5EXKg7(|Ri5S4Jc$SJoLs^%c#boZ`vhN@#&j38^z
z#;s4*#t7=#)w$PO*Az}SCyNXtK`C>(wRmJWg;9j^sS$ERy;2ic{mlF4=J_-4-