ActorResource or duplicate ActorLife?
Moderator: Moderator
ActorResource or duplicate ActorLife?
I am developing a module based loosely on Zombieland and Fallout and one of the game concepts is "viral load" (VL), the amount of zombifying virus in an Actor. I initially coded VL as an ActorResource, but a zombie attack will give both physical (HP) and viral (VL) damage, and once the VL gets too high the Actor will "die." This started me thinking that VL would benefit from being a modified ActorLife and have since created a mod.class.interface.ActorLife for implementing this behavior. Has anyone else dealt with two variables handling life/death, or have thoughts on my implementation? Thanks!
<DarkGod> lets say it's intended
Re: ActorResource or duplicate ActorLife?
IMO it really depends on the needed complexity of it.
In ToME I have air level as a ressource because even though you can die from it it's rare and the process is simple.
Both methods are valid
In ToME I have air level as a ressource because even though you can die from it it's rare and the process is simple.
Both methods are valid

[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: ActorResource or duplicate ActorLife?
Oh and welcome to TE4 ! 
A zombie fallout ? That sounds neat

A zombie fallout ? That sounds neat

[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: ActorResource or duplicate ActorLife?
Thank you DG for such a great engine! I originally started writing this game using libtcod, but at the time there were issues with my main development platform (Mac) and my main development language (Python). I started playing through ToME 4 and thought "why not learn Lua?" I admit it is still a little confusing to me.
I hadn't thought about looking at the air resource in ToME. I will take a look at that, thanks!
P.S. I posted a few short patches (http://forum.t-o-m-e.net/viewtopic.php?p=86143#p86143), and just wanted to give another plug for color-blind friendly colors.

I hadn't thought about looking at the air resource in ToME. I will take a look at that, thanks!
P.S. I posted a few short patches (http://forum.t-o-m-e.net/viewtopic.php?p=86143#p86143), and just wanted to give another plug for color-blind friendly colors.

<DarkGod> lets say it's intended