Add math.floor to module example in Lua API

develop
Tachytaenius 2022-12-11 23:03:50 +00:00 committed by GitHub
parent 848cef115a
commit 8cc34f920c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -3583,7 +3583,7 @@ Examples:
-- check projectile distance flown is zero, get firer, etc...
local multiplier = tonumber(customRawTokens.getToken(bow, "EXAMPLE_MOD_FIRE_RATE_MULTIPLIER")) or 1
firer.counters.think_counter = firer.counters.think_counter * multiplier
firer.counters.think_counter = math.floor(firer.counters.think_counter * multiplier)
* Something for a script that prints help text about different types of units::