MCPcopy Create free account
hub / github.com/crawl/crawl / _rdam

Function _rdam

crawl-ref/source/spl-vortex.cc:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static int _rdam(int rage)
208{
209 // integral of damage done until given age-radius
210 if (rage <= 0)
211 return 0;
212 else if (rage < 10)
213 return sqr(rage) / 2;
214 else
215 return rage * 10 - 50;
216}
217
218static int _vortex_age(const actor *caster)
219{

Callers 1

polar_vortex_damageFunction · 0.85

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected