mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 23:21:20 +02:00
Use create_part in resist reactions, and set CarriesCtypeIn for RSSS.
This commit is contained in:
@@ -238,7 +238,7 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PT_RSST: // RSST -> BIZR
|
case PT_RSST: // RSST -> BIZR
|
||||||
sim->part_change_type(ID(r), x + rx, y + ry, PT_BIZR);
|
sim->create_part(ID(r), x + rx, y + ry, PT_BIZR);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -33,6 +33,7 @@ void Element::Element_RSSS()
|
|||||||
Description = "Solidified resist. Blocks pressure and insulates electricity. Liquefies on contact with neutrons.";
|
Description = "Solidified resist. Blocks pressure and insulates electricity. Liquefies on contact with neutrons.";
|
||||||
|
|
||||||
Properties = TYPE_SOLID|PROP_NEUTPASS;
|
Properties = TYPE_SOLID|PROP_NEUTPASS;
|
||||||
|
CarriesTypeIn = (1U << FIELD_CTYPE) | (1U << FIELD_TMP);
|
||||||
|
|
||||||
LowPressure = IPL;
|
LowPressure = IPL;
|
||||||
LowPressureTransition = NT;
|
LowPressureTransition = NT;
|
||||||
|
@@ -61,7 +61,7 @@ int update(UPDATE_FUNC_ARGS)
|
|||||||
// RSST + GUNP = FIRW
|
// RSST + GUNP = FIRW
|
||||||
if(TYP(r) == PT_GUNP)
|
if(TYP(r) == PT_GUNP)
|
||||||
{
|
{
|
||||||
sim->part_change_type(i, x, y, PT_FIRW);
|
sim->create_part(i, x, y, PT_FIRW);
|
||||||
sim->kill_part(ID(r));
|
sim->kill_part(ID(r));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@ int update(UPDATE_FUNC_ARGS)
|
|||||||
// RSST + BCOL = FSEP
|
// RSST + BCOL = FSEP
|
||||||
if(TYP(r) == PT_BCOL)
|
if(TYP(r) == PT_BCOL)
|
||||||
{
|
{
|
||||||
sim->part_change_type(i, x, y, PT_FSEP);
|
sim->create_part(i, x, y, PT_FSEP);
|
||||||
parts[i].life = 50;
|
parts[i].life = 50;
|
||||||
sim->kill_part(ID(r));
|
sim->kill_part(ID(r));
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user