C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
34 stars 9 forks source link

Combat Part Two #250

Closed maxpetul closed 2 years ago

maxpetul commented 2 years ago

This PR finishes off "Combat Part Two", the second pass over the combat mechanics for Carthage. Major changes:

Programming this stuff made me realize there are many edge cases in Civ 3 where I'm not sure of the rules. For example, is it possible for a unit to retreat while defending a city? If a unit attacks with 1 HP, can it get killed by defensive bombard? In both cases, I think the answer is "no" since I can't recall ever seeing those things happen, but I'm not sure about that.

QuintillusCFC commented 2 years ago

Taking a look at this PR, I'd been leaving it for @WildWeazel since he already did a pass, but that's been almost a month now.

Programming this stuff made me realize there are many edge cases in Civ 3 where I'm not sure of the rules. For example, is it possible for a unit to retreat while defending a city? If a unit attacks with 1 HP, can it get killed by defensive bombard? In both cases, I think the answer is "no" since I can't recall ever seeing those things happen, but I'm not sure about that.

I also think the answer is "no", 100% sure on not being able to retreat while defending a city, 98.1% sure on defensive bombard. I also don't recall seeing either of them.

QuintillusCFC commented 2 years ago

Oh and also thanks for leaving a good overview comment. That really helped with orienting myself at the start.