Added PAPR+NEUT=LCRY reaction

This commit is contained in:
Rebmiami 2024-03-15 07:58:51 -04:00
parent 4353ade881
commit 6f5bd2fafd
3 changed files with 10 additions and 2 deletions

View File

@ -32,7 +32,7 @@ void Element::Element_LCRY()
HeatConduct = 251;
Description = "Liquid Crystal. Changes colour when charged. (PSCN Charges, NSCN Discharges)";
Properties = TYPE_SOLID;
Properties = TYPE_SOLID | PROP_NEUTPASS;
LowPressure = IPL;
LowPressureTransition = NT;

View File

@ -164,6 +164,14 @@ static int update(UPDATE_FUNC_ARGS)
else
sim->create_part(ID(r), x+rx, y+ry, PT_CAUS);
break;
case PT_PAPR:
if (sim->rng.chance(1, 20))
{
int dcolour = parts[ID(r)].dcolour;
sim->create_part(ID(r), x+rx, y+ry, PT_LCRY);
parts[ID(r)].dcolour = dcolour;
}
break;
default:
break;
}

View File

@ -41,7 +41,7 @@ void Element::Element_PAPR()
HeatConduct = 80;
Description = "Paper. Flammable, can be marked by BCOL or deco. Lets non-solids through when unmarked.";
Properties = TYPE_SOLID | PROP_NEUTPENETRATE;
Properties = TYPE_SOLID | PROP_NEUTPASS;
LowPressure = IPL;
LowPressureTransition = NT;