Skip to content

Create a method for controlling invasion squad results #127

Description

@anthonyLuttrell

Invasion Squad Results

  • Game uses player invasion squad population vs. NPC colony population to determine chance of success for player.
  • https://github.com/warofants/wwa/wiki/Combat#invasions
    • If NPC pop is lower than player’s invasion squad pop, very high success chance.
      • Player should still take light casualties
    • If NPC pop is higher than player’s invasion squad pop, very low success chance
      • Player should take heavy casualties and be forced into a “rebuild colony” strategy

Invasion success

  • If this was the last of the rival colonies from the invasion squad results (Create a system that will hold, track, and display the findings of the player's scouts #125), the player wins, game over
  • The amount of food/resources/larvae the player can carry back should represent how large or small the defeated colony was.
    • If the defeated colony was very small, the player should not be able to carry back a large amount of food/resources/larvae
    • If the defeated colony was close to the player’s colony size, they should be able to nearly double their existing food/resources/larvae
  • The 0-100% numbers below should represent a percentage for how much of one thing the invasion squad should carry back
    • Meaning, 50% will carry food, 50% will carry larvae, and 0% will carry resources
    • Or, 100% will carry food, 0% will carry larvae, and 0% will carry resources
    • Or, 33% will carry food, 33% will carry larvae, and 33% will carry resources
      • Maybe just create prompt for the player to "split loot evenly"
    • It does not mean that 100% of the invasion squad will be carrying something, as the defeated colony is probably much smaller than the invasion squad (see above)

“Your invasion squad has annihilated the xyz colony! They are no longer a threat, and you will bring as much food, resources, and larvae as you can carry back to your colony...”

“Your losses were minimal, but the rival colony’s brood you carry back will become part of your colony now...”

“You can decide how much of each item you want to bring back to your colony...”

“Enter a number from 0-100(%) for how much food you want to bring back...”

“Enter a number from 0-100(%) for how much resources you want to carry back...”

“Enter a number from 0-100(%) for how much larvae you want to carry back.”

Invasion failure

  • If player sent 99% of colony, an invasion failure ends the game
  • If player sent < 99% of colony, invasion squad losses should be 80-90%

“Your invasion squad was defeated! The rival colony’s forces were insurmountable and you’ve been forced to retreat...”

“Your losses were great and your colony is in no condition for another fight...”

“Press ENTER now to fall back to your colony and rebuild.”

  • When invasion squad returns to colony, total colony population should be adjusted accordingly

Snapshot of current flow

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions