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
+3 -1
View File
@@ -103,7 +103,9 @@ export function register_curios(ctx: ServerContext) {
});
ctx.events.after.player_join.subscribe(({ player }) => last_hurt.set(player.id, ctx.system.current_tick));
ctx.events.after.player_damage.subscribe(({ player }) => last_hurt.set(player.id, ctx.system.current_tick));
ctx.events.after.entity_damage.subscribe(({ player }) => {
if (player) last_hurt.set(player.id, ctx.system.current_tick);
});
ctx.events.after.tick.subscribe(() => {
for (const [id, effects] of unhurt_effects) {
const player = ctx.players.get(id);