Differences From Artifact [de7a471045510ac0]:
- File
src/game.d
- 2012-07-15 02:04:13 - part of checkin [2b4f8bba2d] on branch trunk - Hige growth implemented. (user: kinaba) [annotate]
To Artifact [89ef01bfcc63d3cd]:
- File
src/game.d
- 2012-07-15 02:05:53 - part of checkin [41c73506fb] on branch trunk - Gets razor. (user: kinaba) [annotate]
253 253 int y = robot.y;
254 254 int x = robot.x;
255 255 assert( this[robot] == 'R' );
256 256 int lambda = 0;
257 257 bool dead = false;
258 258 if( '\\' == this[y+dy,x+dx] )
259 259 lambda++;
260 - if( " \\.O".count(this[y+dy,x+dx])==1 ) {
260 + if( '!' == this[y+dy,x+dx] )
261 + razor++;
262 + if( " \\!.O".count(this[y+dy,x+dx])==1 ) {
261 263 this[y,x]=' ';
262 264 this[y+dy,x+dx]='R';
263 265 robot = new Pos(y+dy,x+dx);
264 266 } else if(dy==0 && '*'==this[y+dy,x+dx] && ' '==this[y+dy*2,x+dx*2]) {
265 267 this[y,x]=' ';
266 268 this[y+dy,x+dx]='R';
267 269 this[y+dy*2,x+dx*2]='*';