Merge pull request #61 from thmsndk/feature/announce_plus13

announce a successful +13 item
This commit is contained in:
Kaan Soral
2023-11-15 18:17:36 +03:00
committed by GitHub
+12
View File
@@ -7188,6 +7188,18 @@ function init_io() {
item.level = 13;
player.items[data.num] = item;
player.citems[data.num] = cache_item(player.items[data.num]);
const announce = !item.silent;
if (announce && !player.stealth) {
broadcast("server_message", {
message: player.name + " received " + item_to_phrase(item),
color: colors.server_success,
item: cache_item(item),
type: "server_usuccess",
name: player.name,
});
}
}
xy_emit(G.maps.spookytown.ref.poof, "upgrade", { type: "poof", success: 1 });
}