diff options
| author | Cracker64 <cracker642@gmail.com> | 2010-12-27 22:29:05 (GMT) |
|---|---|---|
| committer | Cracker64 <cracker642@gmail.com> | 2010-12-27 22:29:05 (GMT) |
| commit | 761ea03882fd779cc77ac7cb49ff59bbfe94b51e (patch) | |
| tree | 65ef4ddfb0ac6d21871507050db072022055839a /src | |
| parent | c5c88529c228987897b722cffafad4e888604132 (diff) | |
| download | powder-761ea03882fd779cc77ac7cb49ff59bbfe94b51e.zip powder-761ea03882fd779cc77ac7cb49ff59bbfe94b51e.tar.gz | |
added a basic coldflame explosive, ignites from CFLM or something cold.
Diffstat (limited to 'src')
| -rw-r--r-- | src/powder.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/powder.c b/src/powder.c index ce3c4fa..2c7944e 100644 --- a/src/powder.c +++ b/src/powder.c @@ -2792,7 +2792,28 @@ void update_particles_i(pixel *vid, int start, int inc) } } } - else if(t==PT_BOMB) + else if(t==PT_C5) + { + for(nx=-2; nx<3; nx++) + for(ny=-2; ny<3; ny++) + if(x+nx>=0 && y+ny>0 && x+nx<XRES && y+ny<YRES && (nx || ny)) + { + r = pmap[y+ny][x+nx]; + if((r>>8)>=NPART || !r) + continue; + if((parts[r>>8].temp<100 && parts[r>>8].type!=PT_C5)||parts[r>>8].type==PT_HFLM) + { + if(1>rand()%6) + { + t = parts[i].type = PT_HFLM; + parts[r>>8].temp = parts[i].temp = 0; + parts[i].life = rand()%150+50; + pv[y/CELL][x/CELL] += 1.5; + } + } + } + } + else if(t==PT_BOMB) { int nb; if(parts[i].tmp==1){ |
