Adds a new spell, Summon Cheese (#22393)

* Here we go so Cheese
Cheese
Cheese
Butter
Spread it

* I hate that this is so much better
Cheese

* CC mapping changes

* Update code/game/objects/items/granters/action_granters/summon_cheese.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
DGamerL
2023-09-17 18:24:19 +01:00
committed by GitHub
co-authored by Henri215
parent 115a14b30a
commit 05c6654fce
7 changed files with 66 additions and 6 deletions
@@ -104,3 +104,16 @@
// Action goes on the mind as the user actually learns the thing in your brain
var/datum/action/new_action = new granted_action(user.mind || user)
new_action.Grant(user)
// Generic action giver
/obj/item/book/granter/spell
/// The typepath of spell that is given
var/obj/effect/proc_holder/spell/granted_spell
/// The name of the spell, formatted in a more text-friendly way
var/spell_name = ""
/obj/item/book/granter/spell/on_reading_finished(mob/living/user)
if(!user.mind)
return
to_chat(user, "<span class='notice'>You feel like you've got a good handle on [spell_name]!</span>")
user.mind.AddSpell(new granted_spell(null))
@@ -0,0 +1,41 @@
/obj/item/book/granter/spell/summon_cheese
name = "Lusty Xenomorph Maid vol. III - Cheese Bakery"
desc = "Wonderful! Time for a celebration... Cheese for everyone!"
icon_state = "cheese_book"
spell_name = "summon cheese"
granted_spell = /obj/effect/proc_holder/spell/aoe/conjure/summon_cheese
remarks = list(
"Always forward, never back...",
"Are these pages... cheese slices?..",
"Healthy snacks for unsuspecting victims...",
"I never knew so many types of cheese existed...",
"Madness reeks of goat cheese...",
"Was it order or biscuits?..",
"Who wouldn't like that?..",
"Why cheese, of all things?..",
"Why do I need a reason for everything?..",
"Cheddar days are coming...",
"Leicester the Red's gouda guide to getting feta at Caseiculture...",
"A passage from Cheesus Christ, the gouda saint...",
"What is the cheese tax and how do I pay it?!..."
)
/obj/item/book/granter/spell/summon_cheese/recoil(mob/living/user)
to_chat(user, "<span class='warning'>[src] turns into a wedge of cheese!</span>")
var/obj/item/reagent_containers/food/snacks/cheesewedge/book_cheese = new
user.drop_item()
user.put_in_hands(book_cheese)
qdel(src)
/obj/effect/proc_holder/spell/aoe/conjure/summon_cheese
name = "Summon Cheese"
desc = "Summon cheesy goodness around you!"
base_cooldown = 1 MINUTES
clothes_req = FALSE
overlay = null
action_icon_state = "cheese_wedge"
action_background_icon_state = "bg_spell"
summon_type = list(/obj/item/reagent_containers/food/snacks/cheesewedge)
summon_amt = 9
aoe_range = 1
summon_ignore_prev_spawn_points = TRUE