TPT: Consistent proportions of WATR and SALT in SLTW (1 SALT + 3 WATR = 4 SLTW)
This commit is contained in:
parent
7fc8d5f388
commit
29283b038c
@ -3626,7 +3626,7 @@ void Simulation::update_particles_i(int start, int inc)
|
|||||||
{
|
{
|
||||||
pt = (c_heat - elements[t].Enthalpy)/c_Cm;
|
pt = (c_heat - elements[t].Enthalpy)/c_Cm;
|
||||||
|
|
||||||
if (1>rand()%6) t = PT_SALT;
|
if (rand()%4==0) t = PT_SALT;
|
||||||
else t = PT_WTRV;
|
else t = PT_WTRV;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -58,7 +58,7 @@ int Element_SLTW::update(UPDATE_FUNC_ARGS)
|
|||||||
if (!r)
|
if (!r)
|
||||||
continue;
|
continue;
|
||||||
if ((r&0xFF)==PT_SALT && 1>(rand()%10000))
|
if ((r&0xFF)==PT_SALT && 1>(rand()%10000))
|
||||||
sim->kill_part(r>>8);
|
sim->part_change_type(r>>8,x+rx,y+ry,PT_SLTW);
|
||||||
if ((r&0xFF)==PT_PLNT&&5>(rand()%1000))
|
if ((r&0xFF)==PT_PLNT&&5>(rand()%1000))
|
||||||
sim->kill_part(r>>8);
|
sim->kill_part(r>>8);
|
||||||
if (((r&0xFF)==PT_RBDM||(r&0xFF)==PT_LRBD) && !sim->legacy_enable && parts[i].temp>(273.15f+12.0f) && 1>(rand()%500))
|
if (((r&0xFF)==PT_RBDM||(r&0xFF)==PT_LRBD) && !sim->legacy_enable && parts[i].temp>(273.15f+12.0f) && 1>(rand()%500))
|
||||||
|
@ -61,6 +61,8 @@ int Element_WATR::update(UPDATE_FUNC_ARGS)
|
|||||||
if ((r&0xFF)==PT_SALT && 1>(rand()%250))
|
if ((r&0xFF)==PT_SALT && 1>(rand()%250))
|
||||||
{
|
{
|
||||||
sim->part_change_type(i,x,y,PT_SLTW);
|
sim->part_change_type(i,x,y,PT_SLTW);
|
||||||
|
// on average, convert 3 WATR to SLTW before SALT turns into SLTW
|
||||||
|
if (rand()%3==0)
|
||||||
sim->part_change_type(r>>8,x+rx,y+ry,PT_SLTW);
|
sim->part_change_type(r>>8,x+rx,y+ry,PT_SLTW);
|
||||||
}
|
}
|
||||||
if (((r&0xFF)==PT_RBDM||(r&0xFF)==PT_LRBD) && (sim->legacy_enable||parts[i].temp>(273.15f+12.0f)) && 1>(rand()%500))
|
if (((r&0xFF)==PT_RBDM||(r&0xFF)==PT_LRBD) && (sim->legacy_enable||parts[i].temp>(273.15f+12.0f)) && 1>(rand()%500))
|
||||||
|
Loading…
Reference in New Issue
Block a user