doughague / torpy

A command-line arena game.
GNU General Public License v3.0
1 stars 0 forks source link

changing values #10

Closed dday76 closed 10 years ago

dday76 commented 10 years ago

I hope we can just do quick questions back and forth like this to move through updates.

I'm trying to change values during the course of the fight. It seems pretty obvious but it doesn't work. Can you let me know what I'm doing wrong on this?

src/progs/torpy.cxx:121:33: fatal error: expression is not assignable w1.fatigue().value()-=3;

dday76 commented 10 years ago

answered over the phone... apparently set, get, reset... still a bit unclear but I've got enough to fiddle some more.