when fishing or mining open a drop list preserve the fishing or mining phrase

This commit is contained in:
thmsndk
2024-02-15 09:44:50 +01:00
committed by GitHub
parent 99a359433c
commit 3a9bf5d998
+8 -8
View File
@@ -3452,14 +3452,14 @@ function exchange(player, name, args) {
bundle: drop[1] == "cxbundle",
});
} else if (drop[1] == "open") {
switch (args.phrase) {
case "Fished":
args.phrase = `Fished ${drop[2]} and got`;
break;
case "Mined":
args.phrase = `Mined ${drop[2]} and got`;
break;
}
//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]);