When Fishing or Mining something that uses open keep the Fishing or Mining phrase

This commit is contained in:
thmsndk
2023-12-14 01:30:14 +01:00
committed by GitHub
parent d82f8abcf6
commit 99a359433c
+9 -1
View File
@@ -3452,7 +3452,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;