mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 23:45:20 +02:00
Add a BASE + CAUS = SLTW reaction.
This commit is contained in:
@@ -134,6 +134,12 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
sim->part_change_type(i, x, y, PT_SLTW);
|
sim->part_change_type(i, x, y, PT_SLTW);
|
||||||
sim->part_change_type(ID(r), x+rx, y+ry, PT_SLTW);
|
sim->part_change_type(ID(r), x+rx, y+ry, PT_SLTW);
|
||||||
return 1;
|
return 1;
|
||||||
|
} //Base neutralizes CAUS
|
||||||
|
else if (rt == PT_CAUS && parts[i].life >= parts[ID(r)].life)
|
||||||
|
{
|
||||||
|
sim->part_change_type(i, x, y, PT_SLTW);
|
||||||
|
sim->kill_part(ID(r));
|
||||||
|
return 1;
|
||||||
} //BASE + OIL = SOAP
|
} //BASE + OIL = SOAP
|
||||||
else if (parts[i].life >= 70 && rt == PT_OIL)
|
else if (parts[i].life >= 70 && rt == PT_OIL)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user