Multiple characters allowed. Starting base health lowered. Fylgjr system implemented.

This commit is contained in:
Storm Dragon
2026-01-31 12:56:36 -05:00
parent 6407f39d1a
commit fc4b8d244b
26 changed files with 1248 additions and 106 deletions

View File

@@ -184,6 +184,7 @@ bool try_attack_player_bandit(Bandit@ bandit) {
} else if (bandit.weapon_type == "axe") {
play_creature_attack_sound("sounds/weapons/axe_hit.ogg", x, bandit.position, BANDIT_SOUND_VOLUME_STEP);
}
play_player_damage_sound();
return true;
}
@@ -199,14 +200,13 @@ void try_attack_barricade_bandit(Bandit@ bandit) {
barricade_health -= damage;
if (barricade_health < 0) barricade_health = 0;
// Play weapon swing sound
// Play weapon swing sound (barricade hits share a common impact sound)
if (bandit.weapon_type == "spear") {
play_creature_attack_sound("sounds/weapons/spear_swing.ogg", x, bandit.position, BANDIT_SOUND_VOLUME_STEP);
play_creature_attack_sound("sounds/weapons/spear_hit.ogg", x, bandit.position, BANDIT_SOUND_VOLUME_STEP);
} else if (bandit.weapon_type == "axe") {
play_creature_attack_sound("sounds/weapons/axe_swing.ogg", x, bandit.position, BANDIT_SOUND_VOLUME_STEP);
play_creature_attack_sound("sounds/weapons/axe_hit.ogg", x, bandit.position, BANDIT_SOUND_VOLUME_STEP);
}
play_creature_attack_sound("sounds/weapons/axe_hit.ogg", x, bandit.position, BANDIT_SOUND_VOLUME_STEP);
// Resident defense counter-attack
if (can_residents_defend()) {