mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-25 22:52:49 +00:00
ru:: changes to toughness now affect current HP
This commit is contained in:
parent
863319e720
commit
37d66c60cc
@ -1,5 +1,9 @@
|
||||
namespace rogue_unlike {
|
||||
|
||||
int randround(ld x) {
|
||||
return x + randd();
|
||||
}
|
||||
|
||||
hyperpoint to_hyper(ld x, ld y) {
|
||||
if(non_hyperbolic) return hyperpoint(x, y, 1, 1);
|
||||
y -= t_margin_at;
|
||||
|
@ -52,8 +52,11 @@ void man::act() {
|
||||
stable_where = where;
|
||||
}
|
||||
|
||||
auto h = max_hp();
|
||||
current = next;
|
||||
next.reset();
|
||||
if(h != max_hp())
|
||||
hp = randround(1. * hp * max_hp() / h);
|
||||
auto dat = get_dat();
|
||||
|
||||
if(on_floor) on_floor_when = gframeid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user