心动值,送普通礼物心动值增加100%
This commit is contained in:
parent
1f696ec8a4
commit
d32093c6b1
@ -915,15 +915,10 @@ public class GiveGiftsListener implements MessageListener {
|
|||||||
|
|
||||||
|
|
||||||
// 礼物比例
|
// 礼物比例
|
||||||
BigDecimal giftRatio;
|
BigDecimal giftRatio = BigDecimal.valueOf(1L);
|
||||||
if (event.checkLuckyGift()) {
|
if (event.checkLuckyGift()) {
|
||||||
// 幸运礼物比例
|
// 幸运礼物比例
|
||||||
giftRatio = gameLuckyGiftCommon.getLuckyGiftTargetRatio(event.getSysOrigin().name());
|
giftRatio = gameLuckyGiftCommon.getLuckyGiftTargetRatio(event.getSysOrigin().name());
|
||||||
} else {
|
|
||||||
RegionConfig acceptRegion = getUserRegion(userId);
|
|
||||||
giftRatio = Objects.equals(event.getSendUserId(), userId) ?
|
|
||||||
getAssistGiftToOwnGoldRatio(acceptRegion.getId()) :
|
|
||||||
getAssistGiftToOtherGoldRatio(acceptRegion.getId());
|
|
||||||
}
|
}
|
||||||
//总的心动值
|
//总的心动值
|
||||||
BigDecimal amountTotal = event.countSingleGiftGolds().multiply(giftRatio);
|
BigDecimal amountTotal = event.countSingleGiftGolds().multiply(giftRatio);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user