- if (gamewon == 0) d.nromrem = 0; // None captured if no win\r
- iscore = 10*d.killk + 50*d.killc + ithperd + iwon\r
- - 100*d.basekl - 100*klship - 45*nhelp -5*d.starkl - casual\r
- + 20*d.nromkl + 200*d.nsckill - 10*d.nplankl + d.nromrem;\r
+ if (gamewon == 0) state.nromrem = 0; // None captured if no win\r
+ iscore = 10*state.killk + 50*state.killc + ithperd + iwon\r
+ - 100*state.basekl - 100*klship - 45*nhelp -5*state.starkl - casual\r
+ + 20*state.nromkl + 200*state.nsckill - 10*state.nplankl + state.nromrem;\r