- Refactored creep damage and heal apply logic in a more consistent fashion. The main part of its logic can be found here:
- All incoming damage and heal is counted first, but not applied.
- Total heal and damage are applied to the creep's
hits
. hits <= 0
andhits > maxHits
checks are made.- The creep’s
body
is recalculated, includingCARRY
capacity.
Market order prices now can be set with 0.001 precision. However, all real credits transactions still work with 0.01 precision, i.e. when you execute a deal, the resulting transaction (
amount * price
) is rounded up. You cannot execute a deal for a total amount less than 0.01 credits, theGame.market.deal
method will returnERR_INVALID_ARGS
.This means you can sell/buy energy for 0.001 per unit, but with amounts not less than 10 energy units per transaction.
These changes are supported in private server v2.7.1.
Have comments or feedback? You can discuss this post here.