mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 03:54:47 +00:00
multi:: don't count pkills/selfhits if still protected byfragoff; increased the bullet_time
This commit is contained in:
parent
17fcd83f6a
commit
0843b3c600
@ -271,7 +271,7 @@ void killMonster(monster* m, eMonster who_kills, flagtype flags = 0) {
|
||||
if(callhandlers(false, hooks_kill, m)) return;
|
||||
if(m->dead) return;
|
||||
m->dead = true;
|
||||
if(isPlayer(m)) {
|
||||
if(isPlayer(m) && m->fragoff < ticks) {
|
||||
if(multi::cpid == m->pid)
|
||||
multi::suicides[multi::cpid]++;
|
||||
else if(multi::cpid >= 0)
|
||||
@ -408,7 +408,7 @@ ld bullet_velocity(eMonster t) {
|
||||
int frontdir() { return WDIM == 2 ? 0 : 2; }
|
||||
|
||||
/** cannot hit yourself during first 100ms after shooting a bullet */
|
||||
const int bullet_time = 100;
|
||||
const int bullet_time = 300;
|
||||
|
||||
void shootBullet(monster *m) {
|
||||
monster* bullet = new monster;
|
||||
|
Loading…
Reference in New Issue
Block a user