WizardWarsIO / wiz-server

WizardWars.IO Python Server
http://WizardWars.IO
11 stars 1 forks source link

Charging Momentum #73

Open quantumproducer opened 6 years ago

quantumproducer commented 6 years ago

When you hit with a melee attack, your previous 4 inputs are compared to your current direction. For each input with a direction within 2 numpad rotations of your current direction that moved you, gain (Level / 3), rounded up in attack power

Motivation: Fleeing is, in my opinion, too easy. This gives an attacker pursuing a target an attack bonus for catching up to them.

Will need to record previous inputs + if they moved you or not (can be updated by AvatarManager).

See also: #72

roriholm commented 6 years ago

@quantumproducer Another good reason to add a general Momentum component.

quantumproducer commented 6 years ago

@roriholm agree. Added #73