Changeset 1294

Show
Ignore:
Timestamp:
2/2/2010 6:29:43 PM (6 weeks ago)
Author:
Sherkhan
Message:

1. Fix for bad tower fuel computation with certain configurations.
2. Fix for at least some Reaction time computations - probly needs more work but this gets one of em anyways.

Location:
trunk/EveHQ.PosManager
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/EveHQ.PosManager/Data Classes/FuelType.cs

    r1171 r1294  
    124124                { 
    125125                    if (used > 0) 
    126                         ret = Math.Floor((pcMult * sov * pQty) + 1); 
     126                        ret = Math.Ceiling(pcMult * sov * pQty); 
    127127                    else 
    128128                        ret = Math.Floor(pcMult * sov * pQty); 
  • trunk/EveHQ.PosManager/Forms/PoSManMainForm.cs

    r1264 r1294  
    50695069                            } 
    50705070 
     5071                            if (xfIn <= 0) 
     5072                                xfIn = 1; 
     5073                            if (xfOut <= 0) 
     5074                                xfOut = 1; 
    50715075                            if ((fInp) && (!fOutp)) 
    50725076                            { 
     
    57445748            { 
    57455749                // Plain mineral incomming 
    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                } 
    57535780            } 
    57545781            else if (SrcMod.Category == "Mobile Reactor")