I don't. The way I use is run the game with mod, do stuff and see what happened. If only i knew a better way to do testing...
Anyway, here is a test case scenario:
0. Do stuff with addon (add a log messages in code/edit code).
1. Enable Ashes/EoR/Possessor/Your addon/Addon dev tool.
2. create a new game(i'm going in infinity dungeon on insane) as possessor.
3. Set up character (allocate enough to possess).
4. Possess a summoner/doombringer/mindslayer/... another chass you want to test (rare+).
5. Hop in form of possessed creature.
6. Out of combat try to rest.
7. See the result (messages in chat from step 0).
8. if addon doesn't work as intended, go to step 0.
For example my messasges in superloaded Player.lua
Code: Select all
...
game.log("after steam")
-- game.log("self.equilibrium_regen < 0 = " .. self.equilibrium_regen)
-- game.log("self:getEquilibrium()" .. self:getEquilibrium())
-- game.log("self:getMinEquilibrium()" .. self:getMinEquilibrium())
if self:getEquilibrium() > self:getMinEquilibrium() and self.equilibrium_regen < 0 then
-- game.log("equilibrium check true")
if config.settings.marson.rest_equilibrium == "Enabled" and improveEquilRestRate() then
config.settings.marson.checkCooldowns = true
end
...
similar for other resources.