Added PAPR+NEUT=LCRY reaction
This commit is contained in:
parent
4353ade881
commit
6f5bd2fafd
@ -32,7 +32,7 @@ void Element::Element_LCRY()
|
|||||||
HeatConduct = 251;
|
HeatConduct = 251;
|
||||||
Description = "Liquid Crystal. Changes colour when charged. (PSCN Charges, NSCN Discharges)";
|
Description = "Liquid Crystal. Changes colour when charged. (PSCN Charges, NSCN Discharges)";
|
||||||
|
|
||||||
Properties = TYPE_SOLID;
|
Properties = TYPE_SOLID | PROP_NEUTPASS;
|
||||||
|
|
||||||
LowPressure = IPL;
|
LowPressure = IPL;
|
||||||
LowPressureTransition = NT;
|
LowPressureTransition = NT;
|
||||||
|
@ -164,6 +164,14 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
else
|
else
|
||||||
sim->create_part(ID(r), x+rx, y+ry, PT_CAUS);
|
sim->create_part(ID(r), x+rx, y+ry, PT_CAUS);
|
||||||
break;
|
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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ void Element::Element_PAPR()
|
|||||||
HeatConduct = 80;
|
HeatConduct = 80;
|
||||||
Description = "Paper. Flammable, can be marked by BCOL or deco. Lets non-solids through when unmarked.";
|
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;
|
LowPressure = IPL;
|
||||||
LowPressureTransition = NT;
|
LowPressureTransition = NT;
|
||||||
|
Reference in New Issue
Block a user