Codes

Useful console commands for cheating (Pre-Patch)

Start the game from the main menu, press Enter to open chat window and type "/" (without quotes) and commands below.
Commands are case sensitive and use single spaces only, otherwise you will get
unknown command error. Example:
Enable god mode: /Const INVULNERABILITY=1
Disable god mode: /Const INVULNERABILITY=0

Effect

Code

Ability points you earn per level (Default=5)

HERO_ABILITYPOINTS_PER_LEVELUP=10

All spells have one second cooldown

ONE_SEC_COOLDOWN=1

Base crit chance percent (Default=5)

HERO_BASE_CRIT_CHANCE=100

Buy items for free!

CHEAT_VENDOR=1

Duration which vendors will refresh their items. (Default=600) When set to zero, items will refresh with each click, useful in gambling!

SHOP_RESTOCK_TIME_IN_SEC=0

Edits a game variable. (listed below)

/Const VARIABLE=value

God mode

INVULNERABILITY=1

HP amount added after each levelup (Default=5)

HERO_HP_PER_LEVELUP=50

HP regeneration rate (Default=1)

HERO_HP_REGENERATION_BASE=100

Katarina's ability points per level (Default=3)

COMPANION_ABILITYPOINTS_PER_LEVELUP=10

Katarina's base HP (Default=130)

COMPANION_BASE_HP=500

Katarina's HP points per level (Default=20)

COMPANION_HP_PER_LEVELUP=50

Katarina's respawn duration after her death in seconds (Default=60)

COMPANION_RESPAWN_TIME_SEC=1

Katarina's shopping time in seconds (Default=60)

COMPANION_ERRAND_TIME_SEC=1

Katarina's skill points per level (Default=2)

COMPANION_SKILLPOINTS_PER_LEVELUP=10

Learn traps for free

CHEAT_TRAPS_ON=1

Loot ratio in casual difficulty (Default= -0.2)

SOLDIER_CASUAL_MULTIPLIER_LOOT=10

Loot ratio in hard difficulty (Default=0)

SOLDIER_HARD_MULTIPLIER_LOOT=10

Loot ratio in heroic difficulty (Default=1.5)

SOLDIER_HEROIC_MULTIPLIER_LOOT=10

Loot ratio in normal difficulty (Default= -0.1)

SOLDIER_NORMAL_MULTIPLIER_LOOT=10

Mana regeneration rate (Default=5)

HERO_MANA_REGENERATION_BASE=100

Map sight range. set to 10000 or more to remove the fog of war (Default=200)

MINIMAP_SIGHT_RANGE=10000

Potion cooldown duration in seconds. (Default=8)

POTION_DRINK_COOLDOWN_SEC=0

Rage point earned per kill (Default=5)

HERO_RAGE_PER_KILL=45

Rage points reduced after each interval (Default=1) (by default, 1 rage point fades in every 20 seconds when idle)

HERO_RAGE_REDUCTION_PER_TICK=0

Selling price penalty for Katarina. Change to 1 for full price (Default=0.7)