Ticket #3600: mult_operations_simple.patch

File mult_operations_simple.patch, 723 bytes (added by Palaxin, 8 years ago)

@fatherbushido: it could be as simple as that (you would need to do the 0.8333 stuff as otero did for speed/time calculations, but as I said, it's the "multiply" operation that bothers me most)

  • ps/trunk/binaries/data/mods/public/globalscripts/Technologies.js

     
    3939
    4040            // Nothing is cumulative so that ordering doesn't matter as much as possible
    4141            if (modification.multiply)
    42                 retValue += (modification.multiply - 1) * propertyValue;
     42                retValue *= modification.multiply;
    4343            else if (modification.add)
    4444                retValue += modification.add;
    4545            else if (modification.replace !== undefined) // This will depend on ordering because there is no choice