Merge pull request #84 from thmsndk/patch-1

When Fishing or Mining something that uses `open` keep the phrase
This commit is contained in:
Kaan Soral
2024-02-21 15:53:24 +03:00
committed by GitHub
+9 -1
View File
@@ -3449,7 +3449,15 @@ function exchange(player, name, args) {
bundle: drop[1] == "cxbundle",
});
} else if (drop[1] == "open") {
exchange(player, drop[2]);
//switch (args.phrase) {
// case "Fished":
// args.phrase = `Fished ${drop[2]} and got`;
// break;
// case "Mined":
// args.phrase = `Mined ${drop[2]} and got`;
// break;
//}
exchange(player, drop[2], args);
} else {
var item = create_new_item(drop[1], drop[2]);
var prop = undefined;