mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-26 15:12:48 +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 {
|
namespace rogue_unlike {
|
||||||
|
|
||||||
|
int randround(ld x) {
|
||||||
|
return x + randd();
|
||||||
|
}
|
||||||
|
|
||||||
hyperpoint to_hyper(ld x, ld y) {
|
hyperpoint to_hyper(ld x, ld y) {
|
||||||
if(non_hyperbolic) return hyperpoint(x, y, 1, 1);
|
if(non_hyperbolic) return hyperpoint(x, y, 1, 1);
|
||||||
y -= t_margin_at;
|
y -= t_margin_at;
|
||||||
|
@ -52,8 +52,11 @@ void man::act() {
|
|||||||
stable_where = where;
|
stable_where = where;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto h = max_hp();
|
||||||
current = next;
|
current = next;
|
||||||
next.reset();
|
next.reset();
|
||||||
|
if(h != max_hp())
|
||||||
|
hp = randround(1. * hp * max_hp() / h);
|
||||||
auto dat = get_dat();
|
auto dat = get_dat();
|
||||||
|
|
||||||
if(on_floor) on_floor_when = gframeid;
|
if(on_floor) on_floor_when = gframeid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user