Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looting implementation #17

Merged
merged 12 commits into from Jul 22, 2014
Merged

Commits on Jul 19, 2014

  1. First, basic looting implementation

    Only absolute values are obtained for now, no loss.
    Mike Hoffert committed Jul 19, 2014
    Copy the full SHA
    23deb95 View commit details
    Browse the repository at this point in the history
  2. Implemented rest of resource amount/loss attrs

    Mike Hoffert committed Jul 19, 2014
    Copy the full SHA
    df0d7aa View commit details
    Browse the repository at this point in the history
  3. Added setting to disable going into negatives

    After all, how does one loot what the other faction does not have? Still,
    could be useful for some places, by forcing the opponent to go into
    "debt".
    Mike Hoffert committed Jul 19, 2014
    Copy the full SHA
    68455a8 View commit details
    Browse the repository at this point in the history
  4. No looting if you attack units in same faction

    Mike Hoffert committed Jul 19, 2014
    Copy the full SHA
    3cae255 View commit details
    Browse the repository at this point in the history
  5. Lootable resources now checks for dups

    Mike Hoffert committed Jul 19, 2014
    Copy the full SHA
    75eb5c8 View commit details
    Browse the repository at this point in the history
  6. Fixed compilation error

    Failed to override ==
    Mike Hoffert committed Jul 19, 2014
    Copy the full SHA
    cedb206 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2014

  1. Fixing platform inconsistency

    It appears that the issue is a Windows problem, with Windows providing
    macros for min and max that interfere with using the proper ones defined
    in the algorithm header file.
    Mike Hoffert committed Jul 20, 2014
    Copy the full SHA
    191c353 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'feature-starting-vals' into feature-looting

    Mike Hoffert committed Jul 20, 2014
    Copy the full SHA
    9883bf7 View commit details
    Browse the repository at this point in the history
  3. Converted floats to ints

    As discussed with Titi, this may prevent some issues with multiplayer
    getting out of sync due to different floating point calculations.
    Mike Hoffert committed Jul 20, 2014
    Copy the full SHA
    f0801b3 View commit details
    Browse the repository at this point in the history
  4. Percentages were wrong way around

    Mike Hoffert committed Jul 20, 2014
    Copy the full SHA
    b9eb74d View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2014

  1. Renamed loss-percentage to faction-loss-percentage

    Also renamed loss-value accordingly. As discussed with Titi in IRC.
    Mike Hoffert committed Jul 22, 2014
    Copy the full SHA
    86954ae View commit details
    Browse the repository at this point in the history
  2. Fixed bad names

    Mike Hoffert committed Jul 22, 2014
    Copy the full SHA
    fbde1e6 View commit details
    Browse the repository at this point in the history