Starting life
Posted: Wed Jul 17, 2013 3:47 am
I've noticed that creatures in my fledgling module are created with 100 life, presumably because engine.interface.ActorLife defaults max_life and life to 100 before the player's birth descriptors or NPCs' initialization code correctly set max_life.
I found that I can fix this by just adding an additional "life = " line to the birth descriptors and NPC definitions, and I saw where Startide uses a resolvers.life (presumably to fix this same problem), but is there a cleaner way of handling this? I couldn't see how ToME itself addresses it.
I found that I can fix this by just adding an additional "life = " line to the birth descriptors and NPC definitions, and I saw where Startide uses a resolvers.life (presumably to fix this same problem), but is there a cleaner way of handling this? I couldn't see how ToME itself addresses it.