Added PAPR+NEUT=LCRY reaction
This commit is contained in:
parent
4353ade881
commit
6f5bd2fafd
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user