1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-03 23:33:01 +00:00

ru:: 'chill time' power

This commit is contained in:
Zeno Rogue
2025-05-14 17:56:20 +02:00
parent 4f0a662e05
commit 0ffb805ce8
5 changed files with 22 additions and 9 deletions

View File

@@ -409,7 +409,12 @@ void add_platf_hooks() {
});
rogueviz::rv_hook(shmup::hooks_turn, 90, [=] (int d) {
gtime += d;
ld tscale = 1;
if(dexmode->flags & ACTIVE)
tscale *= 10. / (10 + m.current_stats[stat::dex]);
gtime += d * tscale;
while(gtime > 1000. / game_fps) {
gtime -= 1000. / game_fps;