forked from NotAShelf/rogged
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ic8055a1cf6bdad1aca13673ea171b4b46a6a6964
18 lines
398 B
Zig
18 lines
398 B
Zig
const c = @import("c.zig");
|
|
|
|
pub const CombatEvent = struct {
|
|
message: [*c]const u8 = null,
|
|
damage: c_int = 0,
|
|
is_player_damage: c_int = 0,
|
|
is_critical: c_int = 0,
|
|
was_dodged: c_int = 0,
|
|
was_blocked: c_int = 0,
|
|
block_amount: c_int = 0,
|
|
applied_effect: c.StatusEffectType = c.EFFECT_NONE,
|
|
};
|
|
|
|
pub var last: CombatEvent = .{};
|
|
|
|
pub fn reset() void {
|
|
last = .{};
|
|
}
|