File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Collections . Immutable ;
4- using System . Globalization ;
54using System . Linq ;
65using Nekoyume . Module ;
76using Lib9c ;
@@ -283,8 +282,9 @@ public static AdventureBossGameData.ClaimableReward CalculateExploreReward(
283282
284283 // calculate ncg reward
285284 var totalNcgReward = ( bountyBoard . totalBounty ( ) * 15 ) . DivRem ( 100 , out _ ) ;
286- var myNcgReward = ( totalNcgReward * explorer . Score )
287- . DivRem ( exploreBoard . TotalPoint , out _ ) ;
285+ var myNcgReward = exploreBoard . TotalPoint == 0
286+ ? 0 * totalNcgReward . Currency
287+ : ( totalNcgReward * explorer . Score ) . DivRem ( exploreBoard . TotalPoint , out _ ) ;
288288
289289 // Only > 0.1 NCG will be rewarded.
290290 if ( myNcgReward >= ( 10 * gold ) . DivRem ( 100 , out _ ) )
You can’t perform that action at this time.
0 commit comments