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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

fix: multiply standing cost by purchase quantity (#1948)

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

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

代码差异

1 个文件 +2 -2
Modified src/services/purchaseService.ts +2 -2
@@ -223,10 +223,10 @@ export const handlePurchase = async (
223 223 purchaseResponse.Standing = [
224 224 {
225 225 Tag: syndicateTag,
226 Standing: favour.standingCost
226 Standing: favour.standingCost * purchaseRequest.PurchaseParams.Quantity
227 227 }
228 228 ];
229 affiliation.Standing -= favour.standingCost;
229 affiliation.Standing -= favour.standingCost * purchaseRequest.PurchaseParams.Quantity;
230 230 }
231 231 }
232 232 }