Browse Source

Fix missing/redundant sounds to match H3

Dydzio 1 year ago
parent
commit
1401211145
2 changed files with 11 additions and 1 deletions
  1. 10 0
      config/objects/creatureBanks.json
  2. 1 1
      lib/mapObjects/CBank.cpp

+ 10 - 0
config/objects/creatureBanks.json

@@ -636,6 +636,11 @@
 	"shipwreck" : {
 	"shipwreck" : {
 		"index" :85,
 		"index" :85,
 		"handler": "bank",
 		"handler": "bank",
+		"base" : {
+			"sounds" : {
+				"visit" : ["ROGUE"]
+			}
+		},
 		"types" : {
 		"types" : {
 			"shipwreck" : {
 			"shipwreck" : {
 				"index" : 0,
 				"index" : 0,
@@ -730,6 +735,11 @@
 	"derelictShip" : {
 	"derelictShip" : {
 		"index" :24,
 		"index" :24,
 		"handler": "bank",
 		"handler": "bank",
+		"base" : {
+			"sounds" : {
+				"visit" : ["ROGUE"]
+			}
+		},
 		"types" : {
 		"types" : {
 			"derelictShip" : {
 			"derelictShip" : {
 				"index" : 0,
 				"index" : 0,

+ 1 - 1
lib/mapObjects/CBank.cpp

@@ -238,7 +238,7 @@ void CBank::doVisit(const CGHeroInstance * hero) const
 			}
 			}
 			cb->giveHeroBonus(&gbonus);
 			cb->giveHeroBonus(&gbonus);
 			iw.components.emplace_back(ComponentType::MORALE, -1);
 			iw.components.emplace_back(ComponentType::MORALE, -1);
-			iw.soundID = soundBase::GRAVEYARD;
+			iw.soundID = soundBase::invalid;
 			break;
 			break;
 		}
 		}
 		case Obj::PYRAMID:
 		case Obj::PYRAMID: