I'm a novice atnew to game development and I'm a bit confused onabout how to effectively store an object's access to certain spells/abilities.
The player and mob objects are all generated from the same class. However, each object may have access to different abilities and spells. How do I keep track of a specific object's access to these?
For instanceExample: myMy player object might have access to fireballFireball and hasteHaste, while a goblin might have access to confusionConfusion.
I followed the RogueBasin Python Libtcod tutorialthe RogueBasin Python Libtcod tutorial, and that all makes sense (attachingI understand how to attach a spell function to scroll use). I'm just not sure how to emulate a character memorizing a spell and using it as an ability.