KungFuClan / KungFuScreeps

https://screepers.gitbook.io/screeps-typescript-starter/
9 stars 4 forks source link

Convert tower damage calculations to copy the math in game engine #95

Open UhmBrock opened 4 years ago

UhmBrock commented 4 years ago

https://github.com/screeps/engine/blob/f02d16a44a00c35615ae227fc72a3c9a07a6a39a/src/processor/intents/creeps/tick.js#L7

Copy the logic from this method to ensure our calculations match the game engine on towers and attacking creeps.