mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
announce a successful +13 item
This commit is contained in:
@@ -7185,6 +7185,18 @@ function init_io() {
|
|||||||
item.level = 13;
|
item.level = 13;
|
||||||
player.items[data.num] = item;
|
player.items[data.num] = item;
|
||||||
player.citems[data.num] = cache_item(player.items[data.num]);
|
player.citems[data.num] = cache_item(player.items[data.num]);
|
||||||
|
|
||||||
|
const announce = !item.silent ?? true;
|
||||||
|
|
||||||
|
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 });
|
xy_emit(G.maps.spookytown.ref.poof, "upgrade", { type: "poof", success: 1 });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user