From 8bac76ac57013a725a2139c68c76cd2efe99eb3d Mon Sep 17 00:00:00 2001 From: Wollywoger Date: Fri, 24 Jan 2025 00:56:40 -0500 Subject: [PATCH 1/2] adds all relevant content --- maplestation.dme | 1 + .../spellbook/items/spellbook_item_misc.dm | 10 ++++++++++ .../modules/magic/story_spells/telepathy.dm | 17 +++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 maplestation_modules/code/modules/magic/story_spells/telepathy.dm diff --git a/maplestation.dme b/maplestation.dme index c8529538d58a..d6cc884bc7e0 100644 --- a/maplestation.dme +++ b/maplestation.dme @@ -6433,6 +6433,7 @@ #include "maplestation_modules\code\modules\magic\story_spells\mana_sense.dm" #include "maplestation_modules\code\modules\magic\story_spells\shock_touch.dm" #include "maplestation_modules\code\modules\magic\story_spells\soothe.dm" +#include "maplestation_modules\code\modules\magic\story_spells\telepathy.dm" #include "maplestation_modules\code\modules\magic\story_spells\thaumatergic_sense.dm" #include "maplestation_modules\code\modules\magic\story_spells\water_control.dm" #include "maplestation_modules\code\modules\magic\story_spells\components\story_spell_component.dm" diff --git a/maplestation_modules/code/modules/client/preferences/spellbook/items/spellbook_item_misc.dm b/maplestation_modules/code/modules/client/preferences/spellbook/items/spellbook_item_misc.dm index f31be38a637b..c90a11b7c4be 100644 --- a/maplestation_modules/code/modules/client/preferences/spellbook/items/spellbook_item_misc.dm +++ b/maplestation_modules/code/modules/client/preferences/spellbook/items/spellbook_item_misc.dm @@ -46,3 +46,13 @@ GLOBAL_LIST_INIT(spellbook_misc_items, generate_spellbook_items(SPELLBOOK_CATEGO category = SPELLBOOK_CATEGORY_MISC our_action_typepath = /datum/action/cooldown/spell/pointed/mana_sense + +/datum/spellbook_item/spell/sending + name = "Sending" + description = "Its Telepathy, but with magic." + lore = "Using your magical attunement (or other aptitudes) \ + you can send a message to another creature within a short radius. " + + category = SPELLBOOK_CATEGORY_MISC + + our_action_typepath = /datum/action/cooldown/spell/list_target/telepathy/mana diff --git a/maplestation_modules/code/modules/magic/story_spells/telepathy.dm b/maplestation_modules/code/modules/magic/story_spells/telepathy.dm new file mode 100644 index 000000000000..c73c2b532bfc --- /dev/null +++ b/maplestation_modules/code/modules/magic/story_spells/telepathy.dm @@ -0,0 +1,17 @@ +#define SENDING_MANA_COST 10 + +/datum/action/cooldown/spell/list_target/telepathy/mana + name = "Sending" + desc = "Using mana, telepathically transmits a message to the target." + var/mana_cost = SENDING_MANA_COST + +/datum/action/cooldown/spell/list_target/telepathy/mana/New(Target, original) + . = ..() + + AddComponent(/datum/component/uses_mana/spell, \ + activate_check_failure_callback = CALLBACK(src, PROC_REF(spell_cannot_activate)), \ + get_user_callback = CALLBACK(src, PROC_REF(get_owner)), \ + mana_required = mana_cost, \ + ) + +#undef SENDING_MANA_COST From 481d29ce9ef62888da0cfd86f96bf9b48e950820 Mon Sep 17 00:00:00 2001 From: Wollywoger Date: Sat, 25 Jan 2025 16:22:23 -0500 Subject: [PATCH 2/2] reduces the cost after consideration --- .../code/modules/magic/story_spells/telepathy.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maplestation_modules/code/modules/magic/story_spells/telepathy.dm b/maplestation_modules/code/modules/magic/story_spells/telepathy.dm index c73c2b532bfc..4baa261fce9e 100644 --- a/maplestation_modules/code/modules/magic/story_spells/telepathy.dm +++ b/maplestation_modules/code/modules/magic/story_spells/telepathy.dm @@ -1,4 +1,4 @@ -#define SENDING_MANA_COST 10 +#define SENDING_MANA_COST 7 /datum/action/cooldown/spell/list_target/telepathy/mana name = "Sending"