12
« on: December 13, 2014, 02:22:53 pm »
I'm making an RPG that uses status effects a lot.Things like enemies max health and max mana are determined by a number of items on a list called "stats".These numbers usually include a base number, a "buff" number and a 'debuff' number.
For example an actors damage power is determined by items number 0+15-22.
The problem is that when I change something on an actors list it affects all of the actors of the same type.
For example lowering the max health of one skeleton lowers the max health of all skeletons.This problem also persist from scene to scene, for example after the scene reloads all skeletons will still have "lower max health' status effect.