Class PetHelper
- Namespace
- Nekoyume.Helper
- Assembly
- Lib9c.dll
public static class PetHelper
- Inheritance
-
PetHelper
- Inherited Members
-
Methods
CalculateDiscountedHourglass(long, int, PetState, PetOptionSheet)
public static int CalculateDiscountedHourglass(long diff, int hourglassPerBlock, PetState petState, PetOptionSheet petOptionSheet)
Parameters
diff
long
hourglassPerBlock
int
petState
PetState
petOptionSheet
PetOptionSheet
Returns
- int
CalculateDiscountedMaterialCost(FungibleAssetValue, PetState, PetOptionSheet)
public static FungibleAssetValue CalculateDiscountedMaterialCost(FungibleAssetValue originalCost, PetState petState, PetOptionSheet petOptionSheet)
Parameters
originalCost
FungibleAssetValue
petState
PetState
petOptionSheet
PetOptionSheet
Returns
- FungibleAssetValue
CalculateEnhancementCost(PetCostSheet, int, int, int)
public static (int ncgQuantity, int soulStoneQuantity) CalculateEnhancementCost(PetCostSheet costSheet, int petId, int currentLevel, int targetLevel)
Parameters
costSheet
PetCostSheet
petId
int
currentLevel
int
targetLevel
int
Returns
- (int challengerScoreDelta, int defenderScoreDelta)
CalculateReducedBlockOnCraft(long, long, PetState, PetOptionSheet)
public static long CalculateReducedBlockOnCraft(long originalBlock, long minimumBlock, PetState petState, PetOptionSheet petOptionSheet)
Parameters
originalBlock
long
minimumBlock
long
petState
PetState
petOptionSheet
PetOptionSheet
Returns
- long
GetBonusOptionProbability(int, PetState, PetOptionSheet)
public static int GetBonusOptionProbability(int originalRatio, PetState petState, PetOptionSheet petOptionSheet)
Parameters
originalRatio
int
petState
PetState
petOptionSheet
PetOptionSheet
Returns
- int
GetSoulstoneCurrency(string)
public static Currency GetSoulstoneCurrency(string ticker)
Parameters
ticker
string
Returns
- Currency