Multiple characters allowed. Starting base health lowered. Fylgjr system implemented.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user