diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-11 20:02:58 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-11 20:02:58 (GMT) |
| commit | d7fa0b139e5a91c3b1d406e63cae4a6ad79d0cd0 (patch) | |
| tree | 754ebce0c56f03fe4a8f7e0278584d40c008e2c0 /src/elements/neut.c | |
| parent | de6203e049a148e16737e76c124fc59d0ed1a862 (diff) | |
| download | powder-d7fa0b139e5a91c3b1d406e63cae4a6ad79d0cd0.zip powder-d7fa0b139e5a91c3b1d406e63cae4a6ad79d0cd0.tar.gz | |
New element: Titanium, absorbs some neutrons, acts as a solid wall to air. Move blockair filling into update_particles so it can be used by elements
Diffstat (limited to 'src/elements/neut.c')
| -rw-r--r-- | src/elements/neut.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/elements/neut.c b/src/elements/neut.c index 21e0b90..658195a 100644 --- a/src/elements/neut.c +++ b/src/elements/neut.c @@ -138,6 +138,11 @@ int update_NEUT(UPDATE_FUNC_ARGS) { parts[r>>8].ctype = PT_DUST; else if ((r&0xFF)==PT_ACID && 5>(rand()%100)) create_part(r>>8, x+rx, y+ry, PT_ISOZ); + else if ((r&0xFF)==PT_TTAN && 5>(rand()%100)) + { + kill_part(i); + return 1; + } /*if(parts[r>>8].type>1 && parts[r>>8].type!=PT_NEUT && parts[r>>8].type-1!=PT_NEUT && parts[r>>8].type-1!=PT_STKM && (ptypes[parts[r>>8].type-1].menusection==SC_LIQUID|| ptypes[parts[r>>8].type-1].menusection==SC_EXPLOSIVE|| |
