@@ -448,64 +448,64 @@ func _format_percentage(value: float) -> String:
448
448
449
449
func _get_type_name () -> String :
450
450
match type :
451
- Type .MOD_ARMOR : return "armor"
452
- Type .MOD_ARMOR_PERC : return "armor"
453
- Type .MOD_EXP_GRANTED : return "experience granted"
454
- Type .MOD_EXP_RECEIVED : return "experience received"
455
- Type .MOD_SPELL_DAMAGE_RECEIVED : return "spell damage received"
456
- Type .MOD_SPELL_DAMAGE_DEALT : return "spell damage dealt"
457
- Type .MOD_SPELL_CRIT_DAMAGE : return "spell crit damage"
458
- Type .MOD_SPELL_CRIT_CHANCE : return "spell crit chance"
459
- Type .MOD_BOUNTY_GRANTED : return "bounty granted"
460
- Type .MOD_BOUNTY_RECEIVED : return "bounty received"
461
- Type .MOD_ATK_CRIT_CHANCE : return "crit chance"
462
- Type .MOD_ATK_CRIT_DAMAGE : return "crit damage"
463
- Type .MOD_ATK_DAMAGE_RECEIVED : return "attack damage received"
464
- Type .MOD_ATTACKSPEED : return "attack speed"
465
- Type .MOD_MULTICRIT_COUNT : return "multicrit"
466
- Type .MOD_ITEM_CHANCE_ON_KILL : return "item chance"
467
- Type .MOD_ITEM_QUALITY_ON_KILL : return "item quality"
468
- Type .MOD_ITEM_CHANCE_ON_DEATH : return "item chance"
469
- Type .MOD_ITEM_QUALITY_ON_DEATH : return "item quality"
470
- Type .MOD_BUFF_DURATION : return "buff duration"
471
- Type .MOD_DEBUFF_DURATION : return "debuff duration"
472
- Type .MOD_TRIGGER_CHANCES : return "trigger chances"
473
- Type .MOD_MOVESPEED : return "movement speed"
474
- Type .MOD_MOVESPEED_ABSOLUTE : return "movement speed"
475
- Type .MOD_DAMAGE_BASE : return "base damage"
476
- Type .MOD_DAMAGE_BASE_PERC : return "base damage"
477
- Type .MOD_DAMAGE_ADD : return "attack damage"
478
- Type .MOD_DAMAGE_ADD_PERC : return "attack damage"
479
- Type .MOD_DPS_ADD : return "DPS"
480
- Type .MOD_HP : return "health"
481
- Type .MOD_HP_PERC : return "health"
482
- Type .MOD_HP_REGEN : return "health regen"
483
- Type .MOD_HP_REGEN_PERC : return "health regen"
484
- Type .MOD_MANA : return "mana"
485
- Type .MOD_MANA_PERC : return "mana"
486
- Type .MOD_MANA_REGEN : return "mana regen"
487
- Type .MOD_MANA_REGEN_PERC : return "mana regen"
488
-
489
- Type .MOD_DMG_TO_MASS : return "damage to masses"
490
- Type .MOD_DMG_TO_NORMAL : return "damage to normals"
491
- Type .MOD_DMG_TO_CHAMPION : return "damage to champions"
492
- Type .MOD_DMG_TO_BOSS : return "damage to bosses"
493
- Type .MOD_DMG_TO_AIR : return "damage to air"
494
-
495
- Type .MOD_DMG_TO_UNDEAD : return "damage to undead"
496
- Type .MOD_DMG_TO_MAGIC : return "damage to magic"
497
- Type .MOD_DMG_TO_NATURE : return "damage to nature"
498
- Type .MOD_DMG_TO_ORC : return "damage to orcs"
499
- Type .MOD_DMG_TO_HUMANOID : return "damage to humanoids"
500
- Type .MOD_DMG_TO_CHALLENGE : return "damage to challenge"
501
-
502
- Type .MOD_DMG_FROM_ASTRAL : return "damage from astral"
503
- Type .MOD_DMG_FROM_DARKNESS : return "damage from darkness"
504
- Type .MOD_DMG_FROM_NATURE : return "damage from nature"
505
- Type .MOD_DMG_FROM_FIRE : return "damage from fire"
506
- Type .MOD_DMG_FROM_ICE : return "damage from ice"
507
- Type .MOD_DMG_FROM_STORM : return "damage from storm"
508
- Type .MOD_DMG_FROM_IRON : return "damage from iron"
451
+ Type .MOD_ARMOR : return tr ( "MOD_ARMOR_TEXT" )
452
+ Type .MOD_ARMOR_PERC : return tr ( "MOD_ARMOR_PERC_TEXT" )
453
+ Type .MOD_EXP_GRANTED : return tr ( "MOD_EXP_GRANTED_TEXT" )
454
+ Type .MOD_EXP_RECEIVED : return tr ( "MOD_EXP_RECEIVED_TEXT" )
455
+ Type .MOD_SPELL_DAMAGE_RECEIVED : return tr ( "MOD_SPELL_DAMAGE_RECEIVED_TEXT" )
456
+ Type .MOD_SPELL_DAMAGE_DEALT : return tr ( "MOD_SPELL_DAMAGE_DEALT_TEXT" )
457
+ Type .MOD_SPELL_CRIT_DAMAGE : return tr ( "MOD_SPELL_CRIT_DAMAGE_TEXT" )
458
+ Type .MOD_SPELL_CRIT_CHANCE : return tr ( "MOD_SPELL_CRIT_CHANCE_TEXT" )
459
+ Type .MOD_BOUNTY_GRANTED : return tr ( "MOD_BOUNTY_GRANTED_TEXT" )
460
+ Type .MOD_BOUNTY_RECEIVED : return tr ( "MOD_BOUNTY_RECEIVED_TEXT" )
461
+ Type .MOD_ATK_CRIT_CHANCE : return tr ( "MOD_ATK_CRIT_CHANCE_TEXT" )
462
+ Type .MOD_ATK_CRIT_DAMAGE : return tr ( "MOD_ATK_CRIT_DAMAGE_TEXT" )
463
+ Type .MOD_ATK_DAMAGE_RECEIVED : return tr ( "MOD_ATK_DAMAGE_RECEIVED_TEXT" )
464
+ Type .MOD_ATTACKSPEED : return tr ( "MOD_ATTACKSPEED_TEXT" )
465
+ Type .MOD_MULTICRIT_COUNT : return tr ( "MOD_MULTICRIT_COUNT_TEXT" )
466
+ Type .MOD_ITEM_CHANCE_ON_KILL : return tr ( "MOD_ITEM_CHANCE_ON_KILL_TEXT" )
467
+ Type .MOD_ITEM_QUALITY_ON_KILL : return tr ( "MOD_ITEM_QUALITY_ON_KILL_TEXT" )
468
+ Type .MOD_ITEM_CHANCE_ON_DEATH : return tr ( "MOD_ITEM_CHANCE_ON_DEATH_TEXT" )
469
+ Type .MOD_ITEM_QUALITY_ON_DEATH : return tr ( "MOD_ITEM_QUALITY_ON_DEATH_TEXT" )
470
+ Type .MOD_BUFF_DURATION : return tr ( "MOD_BUFF_DURATION_TEXT" )
471
+ Type .MOD_DEBUFF_DURATION : return tr ( "MOD_DEBUFF_DURATION_TEXT" )
472
+ Type .MOD_TRIGGER_CHANCES : return tr ( "MOD_TRIGGER_CHANCES_TEXT" )
473
+ Type .MOD_MOVESPEED : return tr ( "MOD_MOVESPEED_TEXT" )
474
+ Type .MOD_MOVESPEED_ABSOLUTE : return tr ( "MOD_MOVESPEED_ABSOLUTE_TEXT" )
475
+ Type .MOD_DAMAGE_BASE : return tr ( "MOD_DAMAGE_BASE_TEXT" )
476
+ Type .MOD_DAMAGE_BASE_PERC : return tr ( "MOD_DAMAGE_BASE_PERC_TEXT" )
477
+ Type .MOD_DAMAGE_ADD : return tr ( "MOD_DAMAGE_ADD_TEXT" )
478
+ Type .MOD_DAMAGE_ADD_PERC : return tr ( "MOD_DAMAGE_ADD_PERC_TEXT" )
479
+ Type .MOD_DPS_ADD : return tr ( "MOD_DPS_ADD_TEXT" )
480
+ Type .MOD_HP : return tr ( "MOD_HP_TEXT" )
481
+ Type .MOD_HP_PERC : return tr ( "MOD_HP_PERC_TEXT" )
482
+ Type .MOD_HP_REGEN : return tr ( "MOD_HP_REGEN_TEXT" )
483
+ Type .MOD_HP_REGEN_PERC : return tr ( "MOD_HP_REGEN_PERC_TEXT" )
484
+ Type .MOD_MANA : return tr ( "MOD_MANA_TEXT" )
485
+ Type .MOD_MANA_PERC : return tr ( "MOD_MANA_PERC_TEXT" )
486
+ Type .MOD_MANA_REGEN : return tr ( "MOD_MANA_REGEN_TEXT" )
487
+ Type .MOD_MANA_REGEN_PERC : return tr ( "MOD_MANA_REGEN_PERC_TEXT" )
488
+
489
+ Type .MOD_DMG_TO_MASS : return tr ( "MOD_DMG_TO_MASS_TEXT" )
490
+ Type .MOD_DMG_TO_NORMAL : return tr ( "MOD_DMG_TO_NORMAL_TEXT" )
491
+ Type .MOD_DMG_TO_CHAMPION : return tr ( "MOD_DMG_TO_CHAMPION_TEXT" )
492
+ Type .MOD_DMG_TO_BOSS : return tr ( "MOD_DMG_TO_BOSS_TEXT" )
493
+ Type .MOD_DMG_TO_AIR : return tr ( "MOD_DMG_TO_AIR_TEXT" )
494
+
495
+ Type .MOD_DMG_TO_UNDEAD : return tr ( "MOD_DMG_TO_UNDEAD_TEXT" )
496
+ Type .MOD_DMG_TO_MAGIC : return tr ( "MOD_DMG_TO_MAGIC_TEXT" )
497
+ Type .MOD_DMG_TO_NATURE : return tr ( "MOD_DMG_TO_NATURE_TEXT" )
498
+ Type .MOD_DMG_TO_ORC : return tr ( "MOD_DMG_TO_ORC_TEXT" )
499
+ Type .MOD_DMG_TO_HUMANOID : return tr ( "MOD_DMG_TO_HUMANOID_TEXT" )
500
+ Type .MOD_DMG_TO_CHALLENGE : return tr ( "MOD_DMG_TO_CHALLENGE_TEXT" )
501
+
502
+ Type .MOD_DMG_FROM_ASTRAL : return tr ( "MOD_DMG_FROM_ASTRAL_TEXT" )
503
+ Type .MOD_DMG_FROM_DARKNESS : return tr ( "MOD_DMG_FROM_DARKNESS_TEXT" )
504
+ Type .MOD_DMG_FROM_NATURE : return tr ( "MOD_DMG_FROM_NATURE_TEXT" )
505
+ Type .MOD_DMG_FROM_FIRE : return tr ( "MOD_DMG_FROM_FIRE_TEXT" )
506
+ Type .MOD_DMG_FROM_ICE : return tr ( "MOD_DMG_FROM_ICE_TEXT" )
507
+ Type .MOD_DMG_FROM_STORM : return tr ( "MOD_DMG_FROM_STORM_TEXT" )
508
+ Type .MOD_DMG_FROM_IRON : return tr ( "MOD_DMG_FROM_IRON_TEXT" )
509
509
510
510
push_error ("Unhandled type: " , type )
511
511
0 commit comments