XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: change icon path for credits for pre-daily tribute clients (#3574)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3574 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

c647527a
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -0
Modified src/controllers/api/loginRewardsController.ts +6 -0
@@ -53,6 +53,12 @@ export const loginRewardsController: RequestHandler = async (req, res) => {
53 53 sendWsBroadcastTo(account._id.toString(), { update_inventory: true });
54 54 }
55 55 if (is_pre_daily_tribute) {
56 // Ensure icon is something the client can display.
57 for (const reward of response.DailyTributeInfo.Rewards!) {
58 if (reward.Icon == "/Lotus/Interface/Icons/StoreIcons/Currency/CreditsLarge.png") {
59 reward.Icon = "/Lotus/Interface/Icons/Store/CreditBooster.png";
60 }
61 }
56 62 res.json({ Rewards: response.DailyTributeInfo.Rewards });
57 63 } else {
58 64 res.json(response);