Skip to content

Commit

Permalink
Add sfx for golden eagle
Browse files Browse the repository at this point in the history
  • Loading branch information
romovs committed Mar 25, 2018
1 parent 70d3b58 commit 2e23e87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file modified lib/amber-res.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion src/haven/Gob.java
Expand Up @@ -66,7 +66,7 @@ public boolean add(Overlay item) {
public Type type = null;

public enum Type {
OTHER(0), DFRAME(1), TREE(2), BUSH(3), BOULDER(4), PLAYER(5), SIEGE_MACHINE(6), MAMMOTH(7), BAT(8), OLDTRUNK(9), GARDENPOT(10), MUSSEL(11), LOC_RESOURCE(12), FU_YE_CURIO(13), SEAL(14),
OTHER(0), DFRAME(1), TREE(2), BUSH(3), BOULDER(4), PLAYER(5), SIEGE_MACHINE(6), MAMMOTH(7), BAT(8), OLDTRUNK(9), GARDENPOT(10), MUSSEL(11), LOC_RESOURCE(12), FU_YE_CURIO(13), SEAL(14), EAGLE(15),
PLANT(16), MULTISTAGE_PLANT(17),
MOB(32), BEAR(34), LYNX(35), TROLL(38), WALRUS(39),
WOODEN_SUPPORT(64), STONE_SUPPORT(65), METAL_SUPPORT(66), TROUGH(67), BEEHIVE(68);
Expand Down Expand Up @@ -487,6 +487,8 @@ else if (name.endsWith("/gardenpot"))
type = Type.GARDENPOT;
else if (name.endsWith("/mussels"))
type = Type.MUSSEL;
else if (name.endsWith("/goldeneagle"))
type = Type.EAGLE;
else if (Config.alarmitems.containsKey(name) && Config.alarmitems.get(name).selected)
type = Type.FU_YE_CURIO;
else if (Config.locres.contains(name))
Expand Down
4 changes: 4 additions & 0 deletions src/haven/LocalMiniMap.java
Expand Up @@ -56,6 +56,7 @@ public class LocalMiniMap extends Widget {
private static final Resource sealsfx = Resource.local().loadwait("sfx/seal");
private static final Resource trollsfx = Resource.local().loadwait("sfx/troll");
private static final Resource mammothsfx = Resource.local().loadwait("sfx/mammoth");
private static final Resource eaglesfx = Resource.local().loadwait("sfx/eagle");
private static final Resource doomedsfx = Resource.local().loadwait("sfx/doomed");
private static final Resource swagsfx = Resource.local().loadwait("sfx/swag");
private final HashSet<Long> sgobs = new HashSet<Long>();
Expand Down Expand Up @@ -313,6 +314,9 @@ else if (Config.autohearth && enemy)
} else if (gob.type == Gob.Type.MAMMOTH && gob.knocked == Boolean.FALSE) {
sgobs.add(gob.id);
Audio.play(mammothsfx, Config.alarmbearsvol);
} else if (gob.type == Gob.Type.EAGLE && gob.knocked == Boolean.FALSE) {
sgobs.add(gob.id);
Audio.play(eaglesfx);
} else if (Config.alarmbram && gob.type == Gob.Type.SIEGE_MACHINE) {
sgobs.add(gob.id);
Audio.play(doomedsfx, Config.alarmbramvol);
Expand Down

0 comments on commit 2e23e87

Please sign in to comment.