22 #ifndef ULTIMA_ULTIMA1_U1DIALOGS_SPELL_H 23 #define ULTIMA_ULTIMA1_U1DIALOGS_SPELL_H 25 #include "ultima/shared/core/party.h" 26 #include "ultima/ultima1/maps/map_base.h" 27 #include "ultima/ultima1/maps/map_dungeon.h" 38 SPELL_PRAYER = 0, SPELL_OPEN = 1, SPELL_UNLOCK = 2, SPELL_MAGIC_MISSILE = 3, SPELL_STEAL = 4,
39 SPELL_LADDER_DOWN = 5, SPELL_LADDER_UP = 6, SPELL_BLINK = 7, SPELL_CREATE = 8,
40 SPELL_DESTROY = 9, SPELL_KILL = 10
68 _quantity = (uint)
CLIP((
int)_quantity + delta, 0, 255);
Definition: map_dungeon.h:48
T CLIP(T v, T amin, T amax)
Definition: util.h:65
Definition: map_base.h:39
Definition: detection.h:27
Definition: character.h:110
Spell(Ultima1Game *game, Character *c, SpellId spellId)
void changeQuantity(int delta) override
Definition: spell.h:67
virtual void dungeonCast(Maps::MapDungeon *map)
void addInfoMsg(const Common::String &text, bool newLine=true, bool replaceLine=false)
virtual void cast(Maps::MapBase *map)