world/magic/source/SpellFactory.cpp
// Create a spell with reasonable defaults for a self-targetted, item-based, temporary spell.
Create a spell with reasonable defaults for a self-targetted, item-based, temporary spell.
Create a spell with reasonable defaults for a self - targetted item - based temporary spell .
Spell SpellFactory::create_self_targetted_item_spell()
{
  Spell spell;
  spell.set_has_damage(false);
  spell.set_range(0);
  spell.set_shape(SpellShapeFactory::create_spell_shape(SpellShapeType::SPELL_SHAPE_TARGET_SELF, SpellConstants::DEFAULT_BEAM_RADIUS));
  spell.set_allows_bonus(false);
  return spell;
}
Spell SpellFactory :: create_self_targetted_item_spell ( ) { Spell spell ; spell . set_has_damage ( false ) ; spell . set_range ( 0 ) ; spell . set_shape ( SpellShapeFactory :: create_spell_shape ( SpellShapeType :: SPELL_SHAPE_TARGET_SELF , SpellConstants :: DEFAULT_BEAM_RADIUS ) ) ; spell . set_allows_bonus ( false ) ; return spell ; }
Create a spell with reasonable defaults for a self-targetted, item-based, temporary spell.
Create a spell with reasonable defaults for a self - targetted item - based temporary spell .