item.hp -= 1;
Posted: Sun Apr 06, 2008 7:01 am
For some reason I am not able to decrement an item's hp using
item.hp -= 1;
item.hp := item.hp - 1;
does work as you'd expect.
Is there any problem with those operators when dealing with refs and not integers?
The distro combat hook has armour wear using item.hp -= 1;
So this may be a bug.
If anyone else can test this for me to confirm, it would be good.
item.hp -= 1;
item.hp := item.hp - 1;
does work as you'd expect.
Is there any problem with those operators when dealing with refs and not integers?
The distro combat hook has armour wear using item.hp -= 1;
So this may be a bug.
If anyone else can test this for me to confirm, it would be good.