Adds self-message to clown pockets spell, calls post_created() (#93885)

## About The Pull Request

Adds self-message to the clown pockets spell that lets you pull out
clown items from nowhere. Also, calls `post_created()` in
`/datum/action/cooldown/spell/conjure_item`, which it wasn't before.

## Why It's Good For The Game

I don't like seeing my own name in the chatbox from my own actions.
`post_created()` currently is useless. It's still useless, cause it's
only for this spell, but its a lesser degree of uselessness.

## Changelog
🆑

spellcheck: Adds self-message to clown pockets spell

/🆑
This commit is contained in:
Leland Kemble
2025-11-12 03:27:24 +01:00
committed by GitHub
parent 6054124482
commit 288c3a606a
2 changed files with 7 additions and 3 deletions
@@ -62,7 +62,7 @@
return ..()
/datum/action/cooldown/spell/conjure_item/clown_pockets/post_created(atom/cast_on, atom/created)
cast_on.visible_message(span_notice("[cast_on] pulls out [created]!"))
cast_on.visible_message(span_notice("[cast_on] pulls out [created]!"), span_notice("You pull out [created]!"))
/datum/action/cooldown/spell/conjure_item/clown_pockets/can_cast_spell(feedback = TRUE)
. = ..()
@@ -76,7 +76,8 @@
/// Prints a funny message, exists so I can override it to print a different message
/datum/action/cooldown/spell/conjure_item/clown_pockets/proc/cast_message(mob/cast_on)
cast_on.visible_message(span_notice("[cast_on] reaches far deeper into [cast_on.p_their()] pockets than you think \
should be possible and starts rummaging around for something."))
should be possible and starts rummaging around for something."), span_notice("You reach further down into your \
pockets than you ever have before and feel around for something."))
/// Longer cooldown variant which is attached to the enchanted clown suit
/datum/action/cooldown/spell/conjure_item/clown_pockets/enchantment
@@ -84,7 +85,8 @@
cooldown_time = 60 SECONDS
/datum/action/cooldown/spell/conjure_item/clown_pockets/enchantment/cast_message(mob/cast_on)
cast_on.visible_message(span_notice("[cast_on] starts rummaging around in [cast_on.p_their()] comically large pants."))
cast_on.visible_message(span_notice("[cast_on] starts rummaging around in [cast_on.p_their()] comically large pants."), span_notice("You \
start rummaging around in your comically large pants."))
/// Enchanted clown suit
/obj/item/clothing/under/rank/civilian/clown/magic
@@ -72,6 +72,8 @@
if(istype(mob_caster))
mob_caster.put_in_hands(created, del_on_fail = delete_on_failure)
post_created(cast_on, created)
return ..()
/// Instantiates the item we're conjuring and returns it.