MCPcopy 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
14double stepdown(double value, double step)
15{
16 return step * log2(1 + value / step);
17}
18
19int stepdown(int value, int step, rounding_type rounding, int max)
20{

Callers 7

_rending_blade_powerFunction · 0.85
_ignite_poison_playerFunction · 0.85
stepdown_valueFunction · 0.85
ench_power_stepdownFunction · 0.85
_ench_pow_to_durFunction · 0.85
guile_will_reductionFunction · 0.85
tremorstone_countFunction · 0.85

Calls 1

decimal_chanceFunction · 0.85

Tested by

no test coverage detected