Move effects out of cubi

This commit is contained in:
2026-11-05 22:37:41 -03:00
parent 0e2d8fdcac
commit 9bc8fd992a
17 changed files with 452 additions and 70 deletions
-10
View File
@@ -178,16 +178,6 @@ export class ServerPlayer extends LivingEntity {
this.vx = this.vy = this.vz = 0;
}
// everything that hurts a player goes through the game server first, which lets mods change or cancel it
override hurt(amount: number, source: DamageSource): boolean {
return this.level.hurt_player(this, amount, source);
}
// hurts them for real, once mods have had their say
apply_hurt(amount: number, source: DamageSource): boolean {
return super.hurt(amount, source);
}
override on_hurt(_source: DamageSource) {
this.vitals.add_exhaustion(EXHAUSTION.damage);
}