LCRY + PROT = LCRY + PHOT

Protons passing through active LCRY get turned into photons slowly, functioning as a powered converter in that manner.
This commit is contained in:
liquidcaesium 2013-09-24 17:58:35 +03:00
parent 13309379f9
commit a376b72b36

View File

@ -78,6 +78,12 @@ int Element_PROT::update(UPDATE_FUNC_ARGS)
{
parts[under>>8].life = 40+parts[under>>8].life;
}
//Powered LCRY reaction: PROT->PHOT
else if (((under&0xFF) == PT_LCRY) && (parts[under>>8].life > 5) && (1>(rand()%10))) {
parts[i].type = PT_PHOT;
parts[i].life *= 2;
parts[i].ctype = 0x3FFFFFFF;
}
else if ((under&0xFF) == PT_EXOT)
parts[under>>8].ctype = PT_PROT;