Giant chesplate

This commit is contained in:
2026-10-01 16:58:30 -03:00
parent a7835261e1
commit 1fc92a7b00
21 changed files with 148 additions and 51 deletions
+3 -2
View File
@@ -45,7 +45,6 @@ import { AIR_ID } from "$/common/protocol.ts";
import type { GameServer } from "./game_server.ts";
import type { ServerPlayer } from "./player.ts";
import { Menu, type MenuSlot } from "./menu.ts";
import { MAX_HEALTH } from "./vitals.ts";
import type { Entity } from "./entity/entity.ts";
import { create_entity } from "./entity/entity_types.ts";
import { attribute_type, type AttributeType, MODIFIER_OPERATIONS } from "./entity/attributes.ts";
@@ -938,7 +937,9 @@ function player_api(game: GameServer, player: ServerPlayer): Player {
get health() {
return player.health;
},
max_health: MAX_HEALTH,
get max_health() {
return player.max_health;
},
get food() {
return player.vitals.food;
},