diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-09-03 13:06:36 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-09-03 13:06:36 (GMT) |
| commit | ea68100724fdb5acbb77ff18032b05d35c9eeecc (patch) | |
| tree | 43e2814275246fa12add21855c81c77d4914cbcb /src/powder.c | |
| parent | d6d40f88d141122d4779f592107eabf46bfb0af2 (diff) | |
| download | powder-ea68100724fdb5acbb77ff18032b05d35c9eeecc.zip powder-ea68100724fdb5acbb77ff18032b05d35c9eeecc.tar.gz | |
Added Powered Void
Diffstat (limited to 'src/powder.c')
| -rw-r--r-- | src/powder.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/powder.c b/src/powder.c index e7afe4e..465158d 100644 --- a/src/powder.c +++ b/src/powder.c @@ -119,6 +119,8 @@ void init_can_move() can_move[t][PT_INVIS] = 3; //stop CNCT being displaced by other particles can_move[t][PT_CNCT] = 0; + //Powered void behaviour varies on powered state + can_move[t][PT_PVOD] = 3; } for (t=0;t<PT_NUM;t++) { @@ -291,6 +293,21 @@ int try_move(int i, int x, int y, int nx, int ny) parts[i].type=PT_NONE; return 0; } + if ((r&0xFF)==PT_PVOD) //this is where void eats particles + { + if(parts[r>>8].life == 10){ + if (parts[i].type == PT_STKM) + { + player[27] = 0; + } + if (parts[i].type == PT_STKM2) + { + player2[27] = 0; + } + parts[i].type=PT_NONE; + } + return 0; + } if ((r&0xFF)==PT_BHOL || (r&0xFF)==PT_NBHL) //this is where blackhole eats particles { if (parts[i].type == PT_STKM) |
