Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

Lady Teldra refuses to leave her sheath #43

Open Rushwind13 opened 1 month ago

Rushwind13 commented 1 month ago

GIVEN I have a Player AND The Player has the unique item Lady Teldra in inventory WHEN I try to spawn another Lady Teldra item THEN The item creation fails

GIVEN I have a Player AND The Player is wielding the unique item Lady Teldra WHEN The player tries to melee attack a peaceful creature THEN The attack fails AND The message "Lady Teldra refuses to leave her sheath" is displayed

GIVEN I have a Player AND The Player is wielding the unique item Lady Teldra WHEN The player is attacked by a magic spell THEN The attack fails AND The message "Lady Teldra absorbs a spell" is displayed AND The attack is redirected to the caster (alternately, Lady Teldra casts death magic at the caster)

AC:

Notes:

Background notes: You could have Unique weapons, that have strong powers, and a personality. (Unique weapons could also not respawn as long as a living character has looted them -- they go back into the loot table once the last owner goes on the high score list)

You’re deep in the dungeon, and find a peaceful wanderer, a lone hiker just passing through the caves on a vacation. You just let those guys walk by.

And your sword decides to keep your word for you.

Swords, then magic swords, then X of the Y (ring of the whatsthebeast, +3 fire resist), then... well, it would be nice to find a sword that you knew you were going to keep awhile.

The orc shaman points at you and curses! -more- Lady Teldra scoffs at the pitiful spell. 😁