dev: migrate combat system & basic build execution to Zig #4
2 changed files with 4 additions and 4 deletions
combat: buff status effects
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ie2f5af13ad3c0392a5e873b15170b0226a6a6964
commit
4a718b9685
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue