From: <gi...@cr...> - 2025-07-18 00:25:10
|
via 2f817d26c11d8105e9dd7db53aafa23ca71c40e6 (commit) from 84388fc2415b6b2ffccb1896a22d0924ba3c2d82 (commit) ----------------------------------------------------------------------- commit 2f817d26c11d8105e9dd7db53aafa23ca71c40e6 Author: David Lawrence Ramsey <poo...@gm...> Date: Thu Jul 17 19:18:52 2025 -0500 Add Xom messages for the amulet slot. ----------------------------------------------------------------------- Summary of changes: crawl-ref/source/dat/database/godspeak.txt | 6 ++++++ crawl-ref/source/xom.cc | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/crawl-ref/source/dat/database/godspeak.txt b/crawl-ref/source/dat/database/godspeak.txt index 5e6adf53ce..37b35374f4 100644 --- a/crawl-ref/source/dat/database/godspeak.txt +++ b/crawl-ref/source/dat/database/godspeak.txt @@ -517,6 +517,12 @@ Xom boots slot @Your_item@ grows to a huge size, then shrinks back down! %%%% +Xom amulet slot + +@Your_item@ pulsates! + +@Your_item@ flares @any_glowing_colour@, then returns to normal. +%%%% Xom gizmo slot @Your_item@ jiggles! diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index ebcd1d4c57..91a1c7ddd1 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -3414,6 +3414,17 @@ static void _xom_pseudo_miscast(int /*sever*/) messages.push_back(str); } + if (item_def* item = you.equipment.get_first_slot_item(SLOT_AMULET)) + { + string name = "your " + item->name(DESC_BASENAME, false, false, false); + string str = _get_xom_speech("amulet slot"); + + str = replace_all(str, "@your_item@", name); + str = replace_all(str, "@Your_item@", uppercase_first(name)); + + messages.push_back(str); + } + if (item_def* item = you.equipment.get_first_slot_item(SLOT_GIZMO)) { string name = "your " + item->name(DESC_BASENAME, false, false, false); -- Dungeon Crawl Stone Soup |