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;
Moderator: POL Developer
That's true. You can find it here:AFAIK UObject member's values cannot be modified using -= += etc constructs
http://forums.polserver.com/sutra8110.p ... ight=#8110