Skip to content

Commit 34028ba

Browse files
committed
Make bar bottles produce drinking sound
1 parent 8bfff5c commit 34028ba

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 2.0.1
22
Changed: All items from this mod are now available from start (Discovery settings are OFF by default).
33
Improved: Toy car can now be placed in more locations (on ground, underwater and so on).
4+
Improved: Bar bottles do now produce drinking sound when used instead of eating sound.
45
Fixed: A bug with marble melon Discovery setting (thanks to Soul Reaver).
56
Fixed: Now you can build the small aquarium.
67
Fixed: Now you can build the alien sculpture (AlienArtefact9).

DecorationsMod/NewItems/BarBottle1.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public override void RegisterItem()
131131
eatable.despawns = false;
132132
eatable.kDecayRate = 0.0f;
133133
eatable.despawnDelay = 0.0f;
134+
CraftData.useEatSound[this.TechType] = "event:/player/drink";
134135

135136
// Associate recipe to the new TechType
136137
SMLHelper.V2.Handlers.CraftDataHandler.SetTechData(this.TechType, this.Recipe);

DecorationsMod/NewItems/BarBottle2.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public override void RegisterItem()
131131
eatable.despawns = false;
132132
eatable.kDecayRate = 0.0f;
133133
eatable.despawnDelay = 0.0f;
134+
CraftData.useEatSound[this.TechType] = "event:/player/drink";
134135

135136
// Associate recipe to the new TechType
136137
SMLHelper.V2.Handlers.CraftDataHandler.SetTechData(this.TechType, this.Recipe);

DecorationsMod/NewItems/BarBottle3.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public override void RegisterItem()
132132
eatable.despawns = false;
133133
eatable.kDecayRate = 0.0f;
134134
eatable.despawnDelay = 0.0f;
135+
CraftData.useEatSound[this.TechType] = "event:/player/drink";
135136

136137
// Associate recipe to the new TechType
137138
SMLHelper.V2.Handlers.CraftDataHandler.SetTechData(this.TechType, this.Recipe);

DecorationsMod/NewItems/BarBottle4.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public override void RegisterItem()
132132
eatable.despawns = false;
133133
eatable.kDecayRate = 0.0f;
134134
eatable.despawnDelay = 0.0f;
135+
CraftData.useEatSound[this.TechType] = "event:/player/drink";
135136

136137
// Associate recipe to the new TechType
137138
SMLHelper.V2.Handlers.CraftDataHandler.SetTechData(this.TechType, this.Recipe);

DecorationsMod/NewItems/BarBottle5.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public override void RegisterItem()
132132
eatable.despawns = false;
133133
eatable.kDecayRate = 0.0f;
134134
eatable.despawnDelay = 0.0f;
135+
CraftData.useEatSound[this.TechType] = "event:/player/drink";
135136

136137
// Associate recipe to the new TechType
137138
SMLHelper.V2.Handlers.CraftDataHandler.SetTechData(this.TechType, this.Recipe);

0 commit comments

Comments
 (0)