Table of Contents
Helper for scaling costs to difficulties
public class CostHelper
Inheritance System.Object CostHelper
Applies a multiplier to a cost and rounds it
public static int CostForDifficulty(int cost, float multiplier);
cost
System.Int32
multiplier
System.Single
Gets a modified cost for a given GameModel's difficulty
public static int CostForDifficulty(int cost, GameModel gameModel);
cost
System.Int32
The default cost
gameModel
Il2CppAssets.Scripts.Models.GameModel
The current GameModel
System.Int32
The modified cost
Gets a modified cost for a given instance of InGame
public static int CostForDifficulty(int cost, InGame inGame);
cost
System.Int32
The default cost
inGame
Il2CppAssets.Scripts.Unity.UI_New.InGame.InGame
Current instance of InGame
System.Int32
The modified cost
Gets a modified cost for a given set of ModModels that are used to setup a match
Somewhere deep within those mods is likely to be a Cost modifier, and this will find and apply that
public static int CostForDifficulty(int cost, List<ModModel> mods);
cost
System.Int32
The default cost
mods
Il2CppSystem.Collections.Generic.List
The mods that the match is using
System.Int32
The modified cost
Scales a base (medium) cost to the given difficulty
public static int CostForDifficulty(int cost, string difficulty);
cost
System.Int32
difficulty
System.String