summaryrefslogtreecommitdiff
path: root/src/elements/nble.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/nble.c')
-rw-r--r--src/elements/nble.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/elements/nble.c b/src/elements/nble.c
index 0c118ed..31f6fc8 100644
--- a/src/elements/nble.c
+++ b/src/elements/nble.c
@@ -23,17 +23,15 @@ int update_NBLE(UPDATE_FUNC_ARGS)
{
int j;
float temp = parts[i].temp;
- part_change_type(i,x,y,PT_PLSM);
- parts[i].life = rand()%150+50;
+ create_part(i,x,y,PT_CO2);
+
j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_NEUT); if (j != -1) parts[j].temp = temp;
if (!(rand()%25)) { j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_ELEC); if (j != -1) parts[j].temp = temp; }
- j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_PHOT);
- if (j != -1) { parts[j].ctype = 0xFF0000; parts[j].temp = temp; }
+ j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_PHOT); if (j != -1) { parts[j].ctype = 0xFF0000; parts[j].temp = temp; }
- j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_CO2);
- if (j != -1) parts[j].temp = temp;
+ j = create_part(-3,x+rand()%3-1,y+rand()%3-1,PT_PLSM); if (j != -1) parts[j].temp = temp;
- parts[i].temp += 1750+rand()%500;
+ parts[i].temp = temp+1750+rand()%500;
pv[y/CELL][x/CELL] += 50;
}
}