Merge pull request #115 from FreezePhoenix/patch-9

Fix bug regarding shiny items
This commit is contained in:
Kaan Soral
2024-03-21 19:12:21 +03:00
committed by GitHub
+4 -6
View File
@@ -12397,12 +12397,10 @@ function update_instance(instance) {
}
if (success && !player.p.u_fail) {
if (announce) {
player.hitchhikers.push([
"game_response",
{ response: "upgrade_success", level: new_level, num: ref.num, stale: ref.stale },
]);
}
player.hitchhikers.push([
"game_response",
{ response: "upgrade_success", level: new_level, num: ref.num, stale: ref.stale },
]);
if (announce && calculate_item_value(item) > 4800000 && !player.stealth) {
broadcast("server_message", {
message: player.name + " received " + item_to_phrase(item),