ooxi / violetland

An open source cross-platform game similar to Crimsonland
https://violetland.github.io/
Other
66 stars 15 forks source link

Change `LifeForm::ChanceToEvade` #122

Closed ooxi closed 8 years ago

ooxi commented 8 years ago

Old formula

chance_old(agility, str) = (agility - 1) / 4 + (str - 1) / 4

New formula

chance_new(agility, str) = (agility + str - 2 ) / (agility + str + 2)

This patch does not change the fact, that a chance cannot be negative.

Visualization of change with fixed strength

chancetoevade-agility

change_old is blue, change_new is red. x-axis is agility (strength fixed at one), y-axis is ChanceToEvade.

Visualization of change with fixed agility

chancetoevade-strengh

change_old is blue, change_new is red. x-axis is strength (agility fixed at one), y-axis is ChanceToEvade.

A LifeForm's initial agility is one and increases slowly. The default strength of a LifeForm is one and increases slowly.

ooxi commented 8 years ago

@bla-rs could you describe the gameplay change achieved by this commit?

bla-rs commented 8 years ago

This commit caps the Chance to Evade to 100% (which it never reaches) and slows the progression. I dont see any mistakes here.

ooxi commented 8 years ago

Thanks!