Fix LITH conducting through INSL
This commit is contained in:
parent
fb318c71ec
commit
fb7132a923
@ -134,6 +134,10 @@ static int update(UPDATE_FUNC_ARGS)
|
||||
break;
|
||||
|
||||
case PT_SPRK:
|
||||
if (sim->parts_avg(i, ID(neighborData), PT_INSL) == PT_INSL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (hydrogenationFactor + carbonationFactor >= 5)
|
||||
{
|
||||
continue; // too impure to do battery things.
|
||||
@ -145,6 +149,10 @@ static int update(UPDATE_FUNC_ARGS)
|
||||
break;
|
||||
|
||||
case PT_NSCN:
|
||||
if (sim->parts_avg(i, ID(neighborData), PT_INSL) == PT_INSL)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (neighbor.life == 0 && storedEnergy > 0 && !burnTimer)
|
||||
{
|
||||
sim->part_change_type(ID(neighborData), x + rx, y + ry, PT_SPRK);
|
||||
|
Loading…
Reference in New Issue
Block a user