MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / UnLearnSpell

Method UnLearnSpell

internal/characters/character.go:431–437  ·  view source on GitHub ↗
(spellName string)

Source from the content-addressed store, hash-verified

429}
430
431func (c *Character) UnLearnSpell(spellName string) bool {
432 if _, ok := c.SpellBook[spellName]; !ok {
433 return false
434 }
435 delete(c.SpellBook, spellName)
436 return true
437}
438
439func (c *Character) GrantXP(xp int) (actualXP int, xpScale int) {
440

Callers 1

SpellFunction · 0.45

Calls 1

deleteFunction · 0.85

Tested by

no test coverage detected