Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crawl/crawl
/ stepdown
Function
stepdown
crawl-ref/source/stepdown.cc:14–17 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
#include
"random.h"
13
14
double stepdown(double value, double step)
15
{
16
return step * log2(1 + value / step);
17
}
18
19
int stepdown(int value, int step, rounding_type rounding, int max)
20
{
Callers
7
_rending_blade_power
Function · 0.85
_ignite_poison_player
Function · 0.85
stepdown_value
Function · 0.85
ench_power_stepdown
Function · 0.85
_ench_pow_to_dur
Function · 0.85
guile_will_reduction
Function · 0.85
tremorstone_count
Function · 0.85
Calls
1
decimal_chance
Function · 0.85
Tested by
no test coverage detected