diff --git a/powder.c b/powder.c index 456f1c3a4..e57bff5cc 100755 --- a/powder.c +++ b/powder.c @@ -2892,8 +2892,43 @@ justdraw: blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32); blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32); } - } - else if(t==PT_SLTW) + } else if(t==PT_PLUT) + { + cr = 0x40; + cg = 0x70; + cb = 0x20; + blendpixel(vid, nx, ny, cr, cg, cb, 192); + blendpixel(vid, nx+1, ny, cr, cg, cb, 96); + blendpixel(vid, nx-1, ny, cr, cg, cb, 96); + blendpixel(vid, nx, ny+1, cr, cg, cb, 96); + blendpixel(vid, nx, ny-1, cr, cg, cb, 96); + for(int tempx = 2; tempx < 10; tempx++) { + for(int tempy = 2; tempy < 10; tempy++) { + blendpixel(vid, nx+tempx, ny-tempy, cr, cg, cb, 5); + blendpixel(vid, nx-tempx, ny+tempy, cr, cg, cb, 5); + blendpixel(vid, nx+tempx, ny+tempy, cr, cg, cb, 5); + blendpixel(vid, nx-tempx, ny-tempy, cr, cg, cb, 5); + } + } + } else if(t==PT_URAN) + { + cr = 0x70; + cg = 0x70; + cb = 0x20; + blendpixel(vid, nx, ny, cr, cg, cb, 192); + blendpixel(vid, nx+1, ny, cr, cg, cb, 96); + blendpixel(vid, nx-1, ny, cr, cg, cb, 96); + blendpixel(vid, nx, ny+1, cr, cg, cb, 96); + blendpixel(vid, nx, ny-1, cr, cg, cb, 96); + for(int tempx = 2; tempx < 10; tempx++) { + for(int tempy = 2; tempy < 10; tempy++) { + blendpixel(vid, nx+tempx, ny-tempy, cr, cg, cb, 5); + blendpixel(vid, nx-tempx, ny+tempy, cr, cg, cb, 5); + blendpixel(vid, nx+tempx, ny+tempy, cr, cg, cb, 5); + blendpixel(vid, nx-tempx, ny-tempy, cr, cg, cb, 5); + } + } + } else if(t==PT_SLTW) { for(x=-1; x<=1; x++) { @@ -3180,233 +3215,7 @@ justdraw: blendpixel(vid, nx+1, ny+1, cr, cg, cb, 32); blendpixel(vid, nx-1, ny-1, cr, cg, cb, 32); } - } else if(t==PT_URAN) { - cr=0x70; - cg=0x70; - cb=0x20; - blendpixel(vid, nx, ny, cr, cr, cr, 255); - blendpixel(vid, nx+1, ny, cr, cg, cb, 32); - blendpixel(vid, nx-1, ny, cr, cg, cb, 32); - blendpixel(vid, nx, ny+1, cr, cg, cb, 32); - blendpixel(vid, nx, ny-1, cr, cg, cb, 32); - blendpixel(vid, nx+1, ny-1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-1, ny+1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+1, ny+1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-1, ny-1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+2, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-2, ny+2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+2, ny+2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-2, ny-2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - } else if(t==PT_PLUT) { - cr=0x40; - cg=0x70; - cb=0x20; - blendpixel(vid, nx, ny, cr, cr, cr, 255); - blendpixel(vid, nx+1, ny, cr, cg, cb, 32); - blendpixel(vid, nx-1, ny, cr, cg, cb, 32); - blendpixel(vid, nx, ny+1, cr, cg, cb, 32); - blendpixel(vid, nx, ny-1, cr, cg, cb, 32); - blendpixel(vid, nx+1, ny-1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-1, ny+1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+1, ny+1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-1, ny-1, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+2, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-2, ny+2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+2, ny+2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-2, ny-2, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+3, ny+3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-3, ny-3, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+1, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-1, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-1, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-2, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny+3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+2, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-4, ny-3, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny+4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx-3, ny-4, cr+10, cg+10, cb+10, 32); - blendpixel(vid, nx+4, ny-4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx+4, ny+4, cr+100, cg+100, cb+100, 32); - blendpixel(vid, nx-4, ny-4, cr+100, cg+100, cb+100, 32); - } else if(t==PT_PLSM) + } else if(t==PT_PLSM) { float ttemp = parts[i].life; int caddress = restrict_flt(restrict_flt(ttemp, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);