(spellName string)
| 421 | } |
| 422 | |
| 423 | func (c *Character) LearnSpell(spellName string) bool { |
| 424 | if _, ok := c.SpellBook[spellName]; !ok { |
| 425 | c.SpellBook[spellName] = 1 |
| 426 | return true |
| 427 | } |
| 428 | return false |
| 429 | } |
| 430 | |
| 431 | func (c *Character) UnLearnSpell(spellName string) bool { |
| 432 | if _, ok := c.SpellBook[spellName]; !ok { |
no outgoing calls