Permalink
Commits on Oct 28, 2013
  1. Improve risk (DEA Raid)

    Explanation of a possible risk calculation: 
    Since we are in the meth business, risk start from 0.5.
    
    Every time we purchase an facility, our risk increases or decreases proportional to the risk of the facility we have bought.  
    
    Some examples:
        Default risk = 0.5 
        -> 50%
    
        One +10% risk facility = 0.5 * (1 + 0.1) = 0.55 
        -> 55%
    
        Five +10% risk facilities = 0.5 * (1.1)^5 = 0.805255 
        -> 81%
    
        One -5% risk facility = 0.5 * (1 - 0.05) = 0.475 
        -> 48%
    
        Five -5% risk facilities = 0.5 * (0.95)^5 = 0.38689046875 
        -> 39%
    
        Five +10% risk facilities and five -5% risk facilities = 0.5 * (1.1)^5 * (0.95)^5 = 0.62309096882
        -> 62%
    
        In case we have 710 'Sleazy Lawyers' along with other the risk factors, the final risk somewhere around is 1.7e-100 instead of -19,432.5%    :-)
    committed Oct 28, 2013
Commits on Oct 27, 2013
  1. Added Franchise upgrade

    nullism committed Oct 27, 2013
  2. Merge pull request #26 from atomicstack/master

    Thanks, merged.
    nullism committed Oct 27, 2013
Commits on Oct 26, 2013
  1. preparing for 0.7.8 release

    nullism committed Oct 26, 2013
Commits on Oct 25, 2013
  1. HTML fix

    nullism committed Oct 25, 2013
  2. Version bump to 0.7.8

    nullism committed Oct 25, 2013
  3. Quick upgrade fix

    nullism committed Oct 25, 2013
  4. Moved Javascript to templates to reduce number of connections on refr…

    …esh. Performance gain on site of about 15% with last nights test
    nullism committed Oct 25, 2013
  5. Cleanup for tonights release

    nullism committed Oct 25, 2013
  6. Fix for #8 and potential fix for #14

    nullism committed Oct 25, 2013
  7. Reformat

    nullism committed Oct 25, 2013
  8. Merge pull request #15 from Pringley/base64save

    Well done. I've merged and will test tonight. I am a little worried about Chrome's 2.5MB `localStorage` limitation, but I suspect we'll be well under that. Thanks again for the commit. Your base64.js is MIT, right?
    nullism committed Oct 25, 2013
  9. Implement import/export for backups

    The save format is base64-encoded JSON. This makes the tamper potential
    less obvious to non-technical users. (Technical users can already just
    inject javascript to make the game do what they want, so there's little
    reason to use actual encryption on the save files.)
    
    Switch import/export display to a textarea instead of an alert, because
    alerts on some platforms have maximum lengths less than the required
    size of the save data, which causes corruption!
    Pringley committed Oct 25, 2013
  10. Vendor base64.js for encoding support

    Encoding library base64.js written by Fred Palmer and released under the
    MIT License.
    Pringley committed Oct 25, 2013
  11. Merge pull request #6 from dakotacody/master

    Good call. Merged.
    nullism committed Oct 25, 2013
  12. Added link back to github

    nullism committed Oct 25, 2013
  13. Version bump

    nullism committed Oct 25, 2013
  14. Fixed RPS

    nullism committed Oct 25, 2013
Commits on Oct 24, 2013
  1. Merge pull request #3 from dakotacody/master

    Merged
    nullism committed Oct 24, 2013
  2. Added a few ideas

    cody.stevens committed Oct 24, 2013
  3. Updated readme again

    nullism committed Oct 24, 2013