| 5746 | | qty = SrcMod.selMineral.reactQty; |
| 5747 | | mult = SrcMod.selMineral.portionSize; |
| 5748 | | vol = SrcMod.selMineral.volume; |
| 5749 | | bPrice = SrcMod.selMineral.basePrice; |
| 5750 | | |
| 5751 | | retV[0] = qty; |
| 5752 | | retV[1] = retV[0] * vol * mult; |
| | 5750 | |
| | 5751 | // There are some cases, where the destination is a reaction, that the reaction |
| | 5752 | // should override on silo due to the selMineral.reactQty being just plain Wrong! |
| | 5753 | if ((DstMod.ModType == 5) || (DstMod.ModType == 6) || (DstMod.ModType == 7)) |
| | 5754 | { |
| | 5755 | foreach (InOutData iod in DstMod.selReact.inputs) |
| | 5756 | { |
| | 5757 | if (iod.typeID == SrcMod.selMineral.typeID) |
| | 5758 | { |
| | 5759 | qty = iod.qty; |
| | 5760 | mult = SrcMod.selMineral.portionSize; |
| | 5761 | vol = SrcMod.selMineral.volume; |
| | 5762 | bPrice = SrcMod.selMineral.basePrice; |
| | 5763 | rQty = SrcMod.selMineral.reactQty; |
| | 5764 | |
| | 5765 | retV[0] = qty * rQty; |
| | 5766 | retV[1] = retV[0] * vol * mult; |
| | 5767 | } |
| | 5768 | } |
| | 5769 | } |
| | 5770 | else |
| | 5771 | { |
| | 5772 | qty = SrcMod.selMineral.reactQty; |
| | 5773 | mult = SrcMod.selMineral.portionSize; |
| | 5774 | vol = SrcMod.selMineral.volume; |
| | 5775 | bPrice = SrcMod.selMineral.basePrice; |
| | 5776 | |
| | 5777 | retV[0] = qty; |
| | 5778 | retV[1] = retV[0] * vol * mult; |
| | 5779 | } |