Difference between revisions of "Monster speed"
(it's clear that monster speed is different from player movement (monster speed applies to ALL actions), so make it a separate page) |
(add a ref for rounding) |
||
Line 3: | Line 3: | ||
==Displaying Speed== | ==Displaying Speed== | ||
− | In game (as of [[0.31]]), monster speed is displayed as a percentage. A monster at 100% speed makes 1 action per 1.0 [[decaAut]]. A monster at 200% speed makes 2 actions per 1.0 decaAut, a monster at 50% speed makes 0.5 actions per 1.0 decaAut, and so on. | + | In game (as of [[0.31]]), monster speed is displayed as a percentage. A monster at 100% speed makes 1 action per 1.0 [[decaAut]]. A monster at 200% speed makes 2 actions per 1.0 decaAut, a monster at 50% speed makes 0.5 actions per 1.0 decaAut, and so on. Note that displayed percentages are rounded to the nearest integer. |
In the wiki, monster speed is displayed as a value, where 1 speed = 10% speed. So a monster listed as 10 speed in the wiki will be displayed as 100% speed in game. | In the wiki, monster speed is displayed as a value, where 1 speed = 10% speed. So a monster listed as 10 speed in the wiki will be displayed as 100% speed in game. | ||
Line 12: | Line 12: | ||
Speed is a measure of how fast a monster moves. A 100% speed monster makes 1 action every 1.0 decaAut (every 1.0 turn) of the player's time. | Speed is a measure of how fast a monster moves. A 100% speed monster makes 1 action every 1.0 decaAut (every 1.0 turn) of the player's time. | ||
− | + | If no rounding occurs (see the [[#Energy|Energy section]] below), speed is deterministic. For example, a 150% speed monster makes an average of 1.5 actions every 1.0 decaAut. | |
− | *If the player [[wait]]s for 1 turn, the monster gets to act either once or twice. | + | *If the player [[wait]]s for 1 turn, the monster gets to act either once or twice... |
− | * | + | *But said monster will ''always'' act in a ratio of 3 actions every 2.0 decaAut. So if the monster acts twice in a 1.0 turn interval, it will only act once in the next 1.0 turn. |
===Speed vs Delay=== | ===Speed vs Delay=== | ||
The player's actions are measured in ''delay'', or how long the action takes. The higher the delay, the slower an action, so delay is the inverse of speed. You can convert speed (percentage) to delay, and vice versa, with the following formulas: | The player's actions are measured in ''delay'', or how long the action takes. The higher the delay, the slower an action, so delay is the inverse of speed. You can convert speed (percentage) to delay, and vice versa, with the following formulas: | ||
*<code>speed% = 100% * (1.0 / delay)</code> | *<code>speed% = 100% * (1.0 / delay)</code> | ||
− | *<code>delay = 1.0 * (100% / Speed%)</code> decaAut (rounded to the | + | *<code>delay = 1.0 * (100% / Speed%)</code> decaAut (rounded in a weighted manner to the tenths place) |
For example, a monster at 200% speed has a delay of 0.5 decaAut. | For example, a monster at 200% speed has a delay of 0.5 decaAut. | ||
===Energy=== | ===Energy=== | ||
− | In the game's code, speed is used to accumulate units of energy. For every 1 speed, a monster gets 1 energy per 1.0 [[decaAut]]. Unless modified, it takes 10 units of energy to make one action. | + | In the game's code, speed is used to accumulate units of energy. For every 1 speed, a monster gets 1 energy per 1.0 [[decaAut]] of player time. Unless modified, it takes 10 units of energy to make one action. This can be displayed as the formula, <code>energy_gain = speed * you_time_taken / 10</code>. |
+ | |||
+ | A monster may have modifiers that raise or lower the amount of energy required to make an action. For example, [[ugly thing]]s only require 9 energy to move. This is displayed as 111% travel speed in game, or (move: 90%) in the wiki. | ||
+ | |||
+ | Energy is rounded to an integer in a weighted manner.<ref>{{source ref|0.30.1|mons-act.cc|1319}}</ref> So if a monster would get 6.25 energy, it'd have a 25% chance to get 6 energy, and a 75% chance to get 7 energy. This may result in adverse rounding | ||
+ | |||
+ | ==References== | ||
+ | <references/> | ||
+ | |||
+ | [[Category:Game Mechanics]] |
Revision as of 19:53, 17 December 2023
A monster's speed determines how many actions a monster gets per turn. The higher the speed, the faster a monster is.
Displaying Speed
In game (as of 0.31), monster speed is displayed as a percentage. A monster at 100% speed makes 1 action per 1.0 decaAut. A monster at 200% speed makes 2 actions per 1.0 decaAut, a monster at 50% speed makes 0.5 actions per 1.0 decaAut, and so on. Note that displayed percentages are rounded to the nearest integer.
In the wiki, monster speed is displayed as a value, where 1 speed = 10% speed. So a monster listed as 10 speed in the wiki will be displayed as 100% speed in game.
By default, speed applies to all actions. However, a monster may have a modifier to specific types of actions. For example, ogres attack at 67% speed (in game display). In the wiki, this modifier is listed as (attack: 150%) - it takes 150% the time to make an attack.
Useful Info
Speed is a measure of how fast a monster moves. A 100% speed monster makes 1 action every 1.0 decaAut (every 1.0 turn) of the player's time.
If no rounding occurs (see the Energy section below), speed is deterministic. For example, a 150% speed monster makes an average of 1.5 actions every 1.0 decaAut.
- If the player waits for 1 turn, the monster gets to act either once or twice...
- But said monster will always act in a ratio of 3 actions every 2.0 decaAut. So if the monster acts twice in a 1.0 turn interval, it will only act once in the next 1.0 turn.
Speed vs Delay
The player's actions are measured in delay, or how long the action takes. The higher the delay, the slower an action, so delay is the inverse of speed. You can convert speed (percentage) to delay, and vice versa, with the following formulas:
speed% = 100% * (1.0 / delay)
delay = 1.0 * (100% / Speed%)
decaAut (rounded in a weighted manner to the tenths place)
For example, a monster at 200% speed has a delay of 0.5 decaAut.
Energy
In the game's code, speed is used to accumulate units of energy. For every 1 speed, a monster gets 1 energy per 1.0 decaAut of player time. Unless modified, it takes 10 units of energy to make one action. This can be displayed as the formula, energy_gain = speed * you_time_taken / 10
.
A monster may have modifiers that raise or lower the amount of energy required to make an action. For example, ugly things only require 9 energy to move. This is displayed as 111% travel speed in game, or (move: 90%) in the wiki.
Energy is rounded to an integer in a weighted manner.[1] So if a monster would get 6.25 energy, it'd have a 25% chance to get 6 energy, and a 75% chance to get 7 energy. This may result in adverse rounding
References
- ↑ mons-act.cc:1319 (0.30.1)