# Round (Integer)
Grammar — Round(x)
Flags —Native
|Function
Returns the value rounded to zero decimal places.
# Arguments
fixed
— Value
Returns — int
native int RoundI(fixed x);
# Related
Category: Math / Arithmetic
- Absolute Value (Integer) —
int
— AbsI - Absolute Value (Real) —
fixed
— AbsF - Arithmetic (Integer)
- Bitwise Arithmetic (Integer)
- Arithmetic (Real)
- Arithmetic Multiple (Integer)
- Bitwise Arithmetic Multiple (Integer)
- Arithmetic Multiple (Real)
- Ceiling (Integer) —
int
— CeilingI - Ceiling (Real) —
fixed
— Ceiling - Clamp (Integer) —
int
— libNtve_gf_ArithmeticIntClamp - Clamp (Real) —
fixed
— libNtve_gf_ArithmeticRealClamp - Cycle
- Floor (Integer) —
int
— FloorI - Floor (Real) —
fixed
— Floor - Log2 (Integer) —
int
— Log2I - Log2 (Real) —
fixed
— Log2 - Log (Real) —
fixed
— libNtve_gf_Log - Modulo (Integer) —
int
— ModI - Modulo (Real) —
fixed
— ModF - Power (Integer) —
int
— PowI - Power (Real) —
fixed
— Pow - Round (Integer) —
int
— RoundI - Round (Real) —
fixed
— Round - Pow2 (Integer) —
int
— Pow2I - Pow2 (Real) —
fixed
— Pow2 - Square Root (Integer) —
int
— SquareRootI - Square Root (Real) —
fixed
— SquareRoot - Trunc (Integer) —
int
— TruncI - Trunc (Real) —
fixed
— Trunc
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:726
// Implementation
libGame_gv_scalingTicks = RoundI(gv_heroLevelTime[lp_level]);
if ((libGame_gv_scalingTicks > libCore_gv_dataScalingMaxScalingTicks)) {
libGame_gv_scalingTicks = libCore_gv_dataScalingMaxScalingTicks;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:726
// Implementation
libGame_gv_scalingTicks = RoundI(gv_heroLevelTime[lp_level]);
if ((libGame_gv_scalingTicks > libCore_gv_dataScalingMaxScalingTicks)) {
libGame_gv_scalingTicks = libCore_gv_dataScalingMaxScalingTicks;
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:4514
lv_itIndex = 1;
for ( ; ( (autoEB16E357_ai >= 0 && lv_itIndex <= autoEB16E357_ae) || (autoEB16E357_ai < 0 && lv_itIndex >= autoEB16E357_ae) ) ; lv_itIndex += autoEB16E357_ai ) {
lv_nextWidth = RoundI((lv_oldWidth + (lv_itDelta * lv_itIndex)));
DialogControlSetSize(lp_bar, PlayerGroupAll(), lv_nextWidth, lp_height);
Wait(0.0625, c_timeGame);
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:12237
lv_lifeCurrentCore = libPEB1_gf_UnitGroupTotalHealth(libPEB1_gv_baseStructuresCore, true);
lv_lifePercentCore = (lv_lifeCurrentCore / lv_lifeTotalCore);
lv_baseHealthBarWidthCoreNew = RoundI((lv_barWidthDefaultCore_C * lv_lifePercentCore));
}
else {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:12270
lv_lifeCurrentKeep = libPEB1_gf_UnitGroupTotalHealth(libPEB1_gv_baseStructuresKeep, true);
lv_lifePercentKeep = (lv_lifeCurrentKeep / lv_lifeTotalKeep);
lv_baseHealthBarWidthKeepNew = RoundI((lv_barWidthDefaultCore_C * lv_lifePercentKeep));
}
else {
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:12303
lv_lifeCurrentBunker = libPEB1_gf_UnitGroupTotalHealth(libPEB1_gv_baseStructuresBunkers, true);
lv_lifePercentBunker = (lv_lifeCurrentBunker / lv_lifeTotalBunker);
lv_baseHealthBarWidthBunkerNew = RoundI((lv_barWidthDefaultCore_C * lv_lifePercentBunker));
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:3301
lv_difficulty = ((libCOMI_gf_DifficultyLevelForPlayerCoop(lv_player01) + libCOMI_gf_DifficultyLevelForPlayerCoop(lv_player02)) * 0.5);
lv_returnDiff = RoundI(lv_difficulty);;
return lv_returnDiff;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:4219
if (((lv_costMinerals > 0) || (lv_costVespene > 0))) {
lv_r = (100.0 - (lv_upgradeCount * lp_percentReductionPerPoint));
lv_costMinerals = FixedToInt(RoundI(((lv_costMinerals * lv_r) / 100.0)));
lv_costVespene = FixedToInt(RoundI(((lv_costVespene * lv_r) / 100.0)));
CatalogFieldValueSet(c_gameCatalogAbil, lv_ability, "InfoArray[" + IntToString(lv_i) + "].Resource[" + IntToString(0) + "]", lp_player, IntToString(lv_costMinerals));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:4220
lv_r = (100.0 - (lv_upgradeCount * lp_percentReductionPerPoint));
lv_costMinerals = FixedToInt(RoundI(((lv_costMinerals * lv_r) / 100.0)));
lv_costVespene = FixedToInt(RoundI(((lv_costVespene * lv_r) / 100.0)));
CatalogFieldValueSet(c_gameCatalogAbil, lv_ability, "InfoArray[" + IntToString(lv_i) + "].Resource[" + IntToString(0) + "]", lp_player, IntToString(lv_costMinerals));
CatalogFieldValueSet(c_gameCatalogAbil, lv_ability, "InfoArray[" + IntToString(lv_i) + "].Resource[" + IntToString(1) + "]", lp_player, IntToString(lv_costVespene));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5485
lv_totalenergyregen = MaxF((lv_baseenergyregen + (libCOMI_gv_cM_Mengsk_EnergyRegenRoyalGuard + libCOMI_gv_cM_Mengsk_EnergyRegenTrooper)), 0.01);
Wait((lv_bonusenergyregenfactor / lv_totalenergyregen), c_timeGame);
lv_globalcasterenergy = RoundI((UnitGetPropertyFixed(lp_mengskGlobalCaster, c_unitPropEnergy, c_unitPropCurrent) + 1));
UnitSetPropertyFixed(lp_mengskGlobalCaster, c_unitPropEnergy, lv_globalcasterenergy);
libCOMI_gf_CM_Mengsk_EnergyChanged(lv_mengskplayer);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5827
}
if ((libCOMI_gv_cM_Stetmann_StetelliteChargesLevel != lv_oldchargelevel)) {
lv_oldmaxcharges = RoundI(libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogAbil, "DeployPowerTowerStetmann", "InfoArray[" + IntToString(lv_oldchargelevel) + "].Charge.CountMax", lp_player));
lv_newmaxcharges = RoundI(libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogAbil, "DeployPowerTowerStetmann", "InfoArray[" + IntToString(libCOMI_gv_cM_Stetmann_StetelliteChargesLevel) + "].Charge.CountMax", lp_player));
PlayerAddChargeUsed(lp_player, "Abil/DeployPowerTowerStetmann", (lv_newmaxcharges - lv_oldmaxcharges));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5828
if ((libCOMI_gv_cM_Stetmann_StetelliteChargesLevel != lv_oldchargelevel)) {
lv_oldmaxcharges = RoundI(libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogAbil, "DeployPowerTowerStetmann", "InfoArray[" + IntToString(lv_oldchargelevel) + "].Charge.CountMax", lp_player));
lv_newmaxcharges = RoundI(libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogAbil, "DeployPowerTowerStetmann", "InfoArray[" + IntToString(libCOMI_gv_cM_Stetmann_StetelliteChargesLevel) + "].Charge.CountMax", lp_player));
PlayerAddChargeUsed(lp_player, "Abil/DeployPowerTowerStetmann", (lv_newmaxcharges - lv_oldmaxcharges));
PlayerAddChargeRegenRemaining(lp_player, "Abil/DeployPowerTowerStetmann", 0.0);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6060
lv_instance = UserDataInstance(auto9ADCDADB_userType, auto9ADCDADB_i);
lv_uT = UserDataGetUnit(libCOMI_gv_cM_Tychus_UserTypeHeroList, lv_instance, "Unit Type", 1);
libNtve_gf_CatalogFieldValueModifyBasedOnDefaultValue(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(0) + "]", lp_p, RoundI((lp_multiplyMinerals * libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(0) + "]", c_playerAny) * lv_costfactor)), c_upgradeOperationSet);
libNtve_gf_CatalogFieldValueModifyBasedOnDefaultValue(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(1) + "]", lp_p, RoundI((lp_multiplyMinerals * libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(1) + "]", c_playerAny) * lv_costfactor)), c_upgradeOperationSet);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6061
lv_uT = UserDataGetUnit(libCOMI_gv_cM_Tychus_UserTypeHeroList, lv_instance, "Unit Type", 1);
libNtve_gf_CatalogFieldValueModifyBasedOnDefaultValue(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(0) + "]", lp_p, RoundI((lp_multiplyMinerals * libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(0) + "]", c_playerAny) * lv_costfactor)), c_upgradeOperationSet);
libNtve_gf_CatalogFieldValueModifyBasedOnDefaultValue(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(1) + "]", lp_p, RoundI((lp_multiplyMinerals * libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogUnit, lv_uT, "CostResource[" + IntToString(1) + "]", c_playerAny) * lv_costfactor)), c_upgradeOperationSet);
}
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6169
lv_damagetypeindex = 0;
for ( ; ( (auto902E4791_ai >= 0 && lv_damagetypeindex <= auto902E4791_ae) || (auto902E4791_ai < 0 && lv_damagetypeindex >= auto902E4791_ae) ) ; lv_damagetypeindex += auto902E4791_ai ) {
CatalogFieldValueSet(c_gameCatalogBehavior, UserDataGetGameLink("CoopAbilityTychusRageEffects", lp_rageEffect, "Rage Bonus Behavior", 1), "Modification.DamageDealtScaled[" + IntToString(lv_damagetypeindex) + "]", lv_tychusowner, IntToString(RoundI((lv_ragemultiplier * (lv_ragecost + lv_extrarage)))));
}
if ((lp_targetUnit == null)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6195
lv_behavior = UserDataGetGameLink("CoopAbilityTychusRageBuffs", lp_rageBuff, "Behavior", 1);
lv_existingstackcount = UnitBehaviorCount(lp_targetUnit, lv_behavior);
lv_newstackcount = libNtve_gf_ArithmeticIntClamp(RoundI((UserDataGetFixed("CoopAbilityTychusRageBuffs", lp_rageBuff, "Rage Factor", 1) * UnitGetPropertyFixed(lp_tychusUnit, c_unitPropEnergy, c_unitPropCurrent))), UserDataGetInt("CoopAbilityTychusRageBuffs", lp_rageBuff, "Min Stacks", 1), UserDataGetInt("CoopAbilityTychusRageBuffs", lp_rageBuff, "Max Stacks", 1));
// Implementation
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:632
DialogControlSetSize(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), 450, 50);
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), c_anchorTop, 0, 240);
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "]")), PlayerGroupAll());
libNtve_gf_CreateDialogItemButton(libCOUI_gv_cU_RandomMutationSelectDialog, 75, 50, c_anchorBottom, 0, 25, StringToText(""), StringToText("OK"), "");
libCOUI_gv_cU_RandomMutationSelectOKButton = DialogControlLastCreated();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:632
DialogControlSetSize(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), 450, 50);
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), c_anchorTop, 0, 240);
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "]")), PlayerGroupAll());
libNtve_gf_CreateDialogItemButton(libCOUI_gv_cU_RandomMutationSelectDialog, 75, 50, c_anchorBottom, 0, 25, StringToText(""), StringToText("OK"), "");
libCOUI_gv_cU_RandomMutationSelectOKButton = DialogControlLastCreated();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:4566
DialogControlSetAnimationState(libCOUI_gv_cU_GPPanel[lp_player], PlayerGroupSingle(lp_player), "ActiveZone", "Speed");
libCOUI_gf_CU_SetStetelliteChargeMax(lp_player);
libCOUI_gf_CU_DrawStetelliteChargePips(lp_player, (libCOUI_gv_cU_StetmannMaxStetelliteCharges - RoundI(PlayerGetChargeUsed(lp_player, "Abil/DeployPowerTowerStetmann"))), libCOUI_gv_cU_StetmannMaxStetelliteCharges);
TriggerEnable(libCOUI_gt_CU_StetelliteChargesChanged, true);
TriggerEnable(libCOUI_gt_CU_StetelliteMaxChargesChanged, true);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:4796
if ((PlayerCommander(lp_player) == "Mengsk")) {
UnitSetPropertyFixed(lp_casterUnit, c_unitPropEnergy, RoundI(UnitGetPropertyFixed(lp_casterUnit, c_unitPropEnergy, c_unitPropCurrent)));
libCOMI_gf_CM_Mengsk_EnergyChanged(lp_player);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6549
}
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6550
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6551
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
libCOUI_gf_CU_RandomMutationSelectClose(1);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6552
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
libCOUI_gf_CU_RandomMutationSelectClose(1);
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6554
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
libCOUI_gf_CU_RandomMutationSelectClose(1);
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
if ((lv_maxdifficulty < lv_mindifficulty)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6555
libCOUI_gf_CU_RandomMutationSelectClose(1);
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
if ((lv_maxdifficulty < lv_mindifficulty)) {
lv_maxdifficulty = lv_mindifficulty;
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:1090
libNtve_gf_SetDialogItemCurrentValue(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultySlider, lp_difficultyLevel, PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultyLabel, (StringExternal("Param/Value/lib_WCdr_7675AC1A") + StringToText(libWCdr_gf_GetPresetNameofDifficultyLevel(lp_difficultyLevel)) + StringExternal("Param/Value/lib_WCdr_0F4CB59A") + IntToText(lp_difficultyLevel) + StringExternal("Param/Value/lib_WCdr_9B6D6802")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_damageLabel, (StringExternal("Param/Value/lib_WCdr_83F00A60") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("EnemyDamageMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_546C1E35")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_healthLabel, (StringExternal("Param/Value/lib_WCdr_D6EB9AC5") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("EnemyHPMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_904E603F")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_bucketSizeLabel, (StringExternal("Param/Value/lib_WCdr_594DF4AB") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("BucketMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_2519A689")), PlayerGroupAll());
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:1091
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultyLabel, (StringExternal("Param/Value/lib_WCdr_7675AC1A") + StringToText(libWCdr_gf_GetPresetNameofDifficultyLevel(lp_difficultyLevel)) + StringExternal("Param/Value/lib_WCdr_0F4CB59A") + IntToText(lp_difficultyLevel) + StringExternal("Param/Value/lib_WCdr_9B6D6802")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_damageLabel, (StringExternal("Param/Value/lib_WCdr_83F00A60") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("EnemyDamageMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_546C1E35")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_healthLabel, (StringExternal("Param/Value/lib_WCdr_D6EB9AC5") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("EnemyHPMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_904E603F")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_bucketSizeLabel, (StringExternal("Param/Value/lib_WCdr_594DF4AB") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("BucketMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_2519A689")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_mutatorLabel, (StringExternal("Param/Value/lib_WCdr_0923E63F") + FixedToText(libWCdr_gf_GetDifficultySum("Mutator", lp_difficultyLevel), c_fixedPrecisionAny)), PlayerGroupAll());
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:1092
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_damageLabel, (StringExternal("Param/Value/lib_WCdr_83F00A60") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("EnemyDamageMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_546C1E35")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_healthLabel, (StringExternal("Param/Value/lib_WCdr_D6EB9AC5") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("EnemyHPMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_904E603F")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_bucketSizeLabel, (StringExternal("Param/Value/lib_WCdr_594DF4AB") + IntToText(RoundI(((libWCdr_gf_GetDifficultyMultiplier("BucketMultiplier", lp_difficultyLevel) + 1.0) * 100.0))) + StringExternal("Param/Value/lib_WCdr_2519A689")), PlayerGroupAll());
libNtve_gf_SetDialogItemText(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_mutatorLabel, (StringExternal("Param/Value/lib_WCdr_0923E63F") + FixedToText(libWCdr_gf_GetDifficultySum("Mutator", lp_difficultyLevel), c_fixedPrecisionAny)), PlayerGroupAll());
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2505
lv_enemy = PlayerGroupNextPlayer(auto508DC790_g, lv_enemy);
if (lv_enemy < 0) { break; }
PlayerModifyPropertyInt(lv_enemy, c_playerPropHandicap, c_playerPropOperSetTo, RoundI(((lv_healthmultiplier + 1.0) * libWCdr_gv_legends.lv_playerCountHandicap * 100.0)));
PlayerModifyPropertyInt(lv_enemy, c_playerPropDamageDealtPercent, c_playerPropOperSetTo, RoundI(((lv_damagemultiplier + 1.0) * 100.0)));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2506
if (lv_enemy < 0) { break; }
PlayerModifyPropertyInt(lv_enemy, c_playerPropHandicap, c_playerPropOperSetTo, RoundI(((lv_healthmultiplier + 1.0) * libWCdr_gv_legends.lv_playerCountHandicap * 100.0)));
PlayerModifyPropertyInt(lv_enemy, c_playerPropDamageDealtPercent, c_playerPropOperSetTo, RoundI(((lv_damagemultiplier + 1.0) * 100.0)));
}
libWCdr_gf_UpdateDebugDifficultySetting(lv_difficultylevel);
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2612
lv_difficultyscalingminlevel = UserDataGetInt("LegionDifficultyScaling", lv_difficultyscalinginstance, "MinLevel", 1);
lv_difficultyscalingmaxlevel = UserDataGetInt("LegionDifficultyScaling", lv_difficultyscalinginstance, "MaxLevel", 1);
lv_difficultyscalingvalue = RoundI(UserDataGetFixed("LegionDifficultyScaling", lv_difficultyscalinginstance, "Value", 1));
if ((UserDataGetUserInstance("LegionDifficultyScaling", lv_difficultyscalinginstance, "Modifier", 1) == lp_difficultyType) && (libWCdr_gf_DifficultyScalingAppliestoCurrentGameMode(lv_difficultyscalinginstance) == true) && (lp_difficultyLevel >= lv_difficultyscalingminlevel) && (lp_difficultyLevel <= lv_difficultyscalingmaxlevel)) {
lv_sum += lv_difficultyscalingvalue;
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:2637
// Implementation
return (lv_currentlevel * RoundI((lv_scalingperlevel * 100.0)));
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:3321
}
lv_newdifficultylevel = libNtve_gf_ArithmeticIntClamp(RoundI(libNtve_gf_DialogItemValue(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultySlider, 1)), UserDataGetInt("LegionDifficultyScaling", "LevelRange", "MinLevel", 1), UserDataGetInt("LegionDifficultyScaling", "LevelRange", "MaxLevel", 1));
if ((lv_newdifficultylevel == libWCdr_gv_legends.lv_difficultyLevel)) {
return true;