plan for 2nd iteration - Head5eR/Tarkvara_Project GitHub Wiki

Ambush-system: (Denis)

Every turn on the map there is a chance of being attacked by random Monster.

Chance is calculated by the next formula: Base chance + distance from the entrance (but not larger than 0.3) + n steps * base increment

Example: 10% + (30% * distance from entrance / length of labyrinth) + 10 * 1%

The farther you are from the entrance - the wider is possible Monster Modifier range

Example: Distance of 1/3 of labyrinth length -> Only monsters with Modifiers Weak, Medium are generated Distance 2/3 -> Monsters with Modifiers Medium, Strong, Dangerous are generated Distance 3/3 -> Monsters with Modifiers Strong, Dangerous, Deadly are generated

Fight-system: (Gleb)

Fight with Monster is 1v1 Turn is:

  1. Player can choose which part of Monster's body he wants to hit (Attack)
  2. Player can choose which part of his own body he wants to protect (Parry)
  • If player has weapons equipped in both hands then he can choose two Attacks or Attack + Parry (but it's less effective than shield)
  • If player has weapon + shield equipped, then he can only Attack and Parry
  1. Player confirms his choices

  2. Monster chooses randomly (pseudo-randomly later) which part he wants to hit

  3. Monster chooses randomly (pseudo-randomly later) which part he wants to protect

  4. Calculate results of a turn

Loot-system (Robert)

XML file with existing items of certain types (Headgear, Gloves, Bodyarmor etc...) so xml looks like:

Skull Helmet Type: headgear Stats:

  • armor=10

Silver Chainmail Type: bodyarmor Stats:

  • armor=200
  • strength=5(+5)

Then after picking item from the XML, a random rarity is picked in Item's constructor -> Item's final stats are multiplied depending on picked rarity. Example:

Rare Silver Chainmail Stats:

  • armor=200 * 1.5 = 300
  • strength=5(+5) * 1.5 = 6.5 ~ 7

Static mobs with loot in Deadends

Need to improve random generator to save all deadends' locations. Then we can put static mobs, which can be attacked and defeated to get their rare loot. Static mobs are seen on the map.