dev: migrate combat system & basic build execution to Zig #4

Merged
NotAShelf merged 9 commits from notashelf/push-nrzuupynktom into main 2026-04-05 21:14:12 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 4a718b9685 - Show all commits

combat: buff status effects

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie2f5af13ad3c0392a5e873b15170b0226a6a6964
raf 2026-04-05 22:24:12 +03:00
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -30,7 +30,7 @@ pub fn name(effect: c.StatusEffectType) ?[*:0]const u8 {
pub fn paramsFor(effect: c.StatusEffectType) EffectParams {
return switch (effect) {
c.EFFECT_BLEED => .{ .duration = 4, .intensity = c.BLEED_STACK_DAMAGE },
c.EFFECT_STUN => .{ .duration = 1, .intensity = 0 },
c.EFFECT_STUN => .{ .duration = 2, .intensity = 0 },
c.EFFECT_WEAKEN => .{ .duration = 3, .intensity = c.WEAKEN_ATTACK_REDUCTION },
c.EFFECT_BURN => .{ .duration = 2, .intensity = c.BURN_BASE_DAMAGE },
c.EFFECT_POISON => .{ .duration = 5, .intensity = c.POISON_BASE_DAMAGE },

View file

@ -30,9 +30,9 @@
// Status Effects
#define MAX_EFFECTS 4
#define POISON_BASE_DAMAGE 1
#define BLEED_STACK_DAMAGE 1
#define BURN_BASE_DAMAGE 2
#define POISON_BASE_DAMAGE 3
#define BLEED_STACK_DAMAGE 3
#define BURN_BASE_DAMAGE 7
#define WEAKEN_ATTACK_REDUCTION 2
#define REGEN_STEP_INTERVAL 15