Skip to content

Instantly share code, notes, and snippets.

@peonso
Last active October 15, 2017 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peonso/f61cebbbd27c18f3132b749232302123 to your computer and use it in GitHub Desktop.
Save peonso/f61cebbbd27c18f3132b749232302123 to your computer and use it in GitHub Desktop.

Shielding formula

  • what is the formula??
testing with a goblin doing fixed hit of 70 in real 7.7

skill	    def		max block	balanced	fullattack
10		14		23		12		8
10		19		31		18		11
10		26		43 		24		15
10		35		61		33		20
10		40		70+		38		21
38		14		57		32		21
38		15		63		32		19
38		16		64		37		22
38		17		66		39		25
38		19		70+		44		27

despite of anything I always can get a 70 hit, so it's from 0 to some max block formula

Poison hits

  • If the hit is not blocked by shield it can poison, regardless of being blocked by armor or not, if it does damage it will always poison.

Cast chance

  • monsters cast less spells while moving?
Dragon stationary trapped, expected number of GFB in 5 minutes (1/7 chance) 42 to 43, got 47.
Dragon kitted never at melee range, expected number of GFB in 10 minutes (1/7 chance) 85 to 86, got 31 to 35.
Dragon blocked at melee range,  expected number of GFB in 10 minutes (1/14 chance) 42 to 43, got 46.
Hunter fleeing moving (only the "fleestep") at a corner, expected number of Arrows in 10 minutes (1/2 chance) 300, got 131.
Hunter fleeing stationary trapped, expected number of Arrows in 15 minutes (1/2 chance) 450, got 146.
Hunter stationary not trapped,  expected number of Arrows in 5 minutes (1/2 chance) 150, got 150.
Hunter kitted never at melee range, expected number of Arrows in 5 minutes (1/2 chance) 150, got 115.

Change target

  • If a monster can change target, he is going in a straight line into a target and other player go in the middle, he will target that player instead

Monster have to have sight of a player to pick it as valid target?

  • ??

Pick nearest target

staticattack

  • how frequently monsters dancestep? ??

Flee

  • it doesn't melee attack, doesn't slow down, doesn't stop to melee attack
  • it keep casting spells, it doesn't turn nor slow down to cast spells
  • it will always move (not diagonally) even if it put it's nearby the target
  • it won't dancestep
  • fleeing algorithm

Taking distance

  • monster slow down to melee attack the target, if at melee range
  • don't turn to cast spells, not even "directed" ones, nor go slow to cast them
  • standstill in the corner, (won't do a step to a "nearby" place to find another place, it standstill in the farthest place it can reach immediatly)
  • it can dancestep at ideal target range
  • getting distance algorithm

Dancestep

While not fleeing, if the monster cannot reach any better position, and is attacking his target, it has a chance to dancestep, that is a random movement to another sqm with the same range to the target as the previous one.

Fleeing algorithm

Flee algorithm

Flee algorithm2

6 and 7 (8 range) still repeats at 9 but not at 10 range (monster doesn't went idle, continued moving)

Flee algorithm3

DistanceStep algorithm

Distance algorithm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment