From a376b72b36713852095dc7c9d2316005a306a5cd Mon Sep 17 00:00:00 2001 From: liquidcaesium Date: Tue, 24 Sep 2013 17:58:35 +0300 Subject: [PATCH] LCRY + PROT = LCRY + PHOT Protons passing through active LCRY get turned into photons slowly, functioning as a powered converter in that manner. --- src/simulation/elements/PROT.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/simulation/elements/PROT.cpp b/src/simulation/elements/PROT.cpp index ff68eb7a0..21e757c00 100644 --- a/src/simulation/elements/PROT.cpp +++ b/src/simulation/elements/PROT.cpp @@ -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;