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

Method LearnSpell

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

Source from the content-addressed store, hash-verified

421}
422
423func (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
431func (c *Character) UnLearnSpell(spellName string) bool {
432 if _, ok := c.SpellBook[spellName]; !ok {

Callers 7

TestCharacter_LearnSpellFunction · 0.45
SpellFunction · 0.45
onCommand_readFunction · 0.45
onCommand_readFunction · 0.45
onGiveFunction · 0.45
onGiveFunction · 0.45
onGiveFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestCharacter_LearnSpellFunction · 0.36