Advertisement
Tkap1

Untitled

Oct 15th, 2022
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.68 KB | None | 0 0
  1. data_enum(e_stat,
  2.  
  3.     s_stat_data
  4.     g_stat_data
  5.  
  6.     invalid
  7.     {
  8.     }
  9.  
  10.     damage
  11.     {
  12.         .name = "damage",
  13.         .tower_base = 10,
  14.         .tags = {e_stat_tag_damage},
  15.     }
  16.  
  17.     attack_speed
  18.     {
  19.         .name = "attack speed",
  20.         .tower_base = 1,
  21.         .tags = {e_stat_tag_speed},
  22.         .display_as_decimal = true,
  23.     }
  24.  
  25.     range
  26.     {
  27.         .name = "range",
  28.         .tower_base = 3.5f,
  29.         .tags = {e_stat_tag_utility},
  30.     }
  31.  
  32.     gold
  33.     {
  34.         .tower_base = 300,
  35.         .enemy_base = 20,
  36.         .tags = {e_stat_tag_utility},
  37.     }
  38.  
  39.     health
  40.     {
  41.         .name = "maximum health",
  42.     }
  43.  
  44.     movement_speed
  45.     {
  46.         .name = "movement speed",
  47.         .enemy_base = 2.5f,
  48.     }
  49.  
  50.     pierce
  51.     {
  52.         .name = "pierce",
  53.         .tags = {e_stat_tag_utility},
  54.     }
  55.  
  56.     projectiles
  57.     {
  58.         .name = "projectiles",
  59.         .singular_name = "projectile",
  60.         .tower_base = 1,
  61.         .tags = {e_stat_tag_utility},
  62.     }
  63.  
  64.     bleed_chance
  65.     {
  66.         .name = "bleed chance",
  67.         .explanation = "Bleed does 450% damage of the hit\nthat inflicted it, ignoring armor",
  68.         .tags = {e_stat_tag_bleed},
  69.         .show_percentage_sign = true,
  70.     }
  71.  
  72.     bleed_damage
  73.     {
  74.         .name = "bleed damage",
  75.         .tags = {e_stat_tag_bleed},
  76.     }
  77.  
  78.     bleed_duration
  79.     {
  80.         .name = "bleed duration",
  81.         .tags = {e_stat_tag_bleed},
  82.     }
  83.  
  84.     slow_chance
  85.     {
  86.         .name = "slow chance",
  87.         .tags = {e_stat_tag_utility},
  88.         .show_percentage_sign = true,
  89.     }
  90.  
  91.     slow_effect
  92.     {
  93.         .name = "slow effect",
  94.         .tags = {e_stat_tag_utility},
  95.     }
  96.  
  97.     slow_duration
  98.     {
  99.         .name = "slow duration",
  100.         .tags = {e_stat_tag_utility},
  101.     }
  102.  
  103.     stun_chance
  104.     {
  105.         .name = "stun chance",
  106.         .tags = {e_stat_tag_utility},
  107.         .show_percentage_sign = true,
  108.     }
  109.  
  110.     orb
  111.     {
  112.         .name = "orbs",
  113.         .singular_name = "orb",
  114.         .explanation = "Orbs orbit around the tower\nand shoot at nearby enemies\nThey cannot apply debuffs",
  115.         .tags = {e_stat_tag_utility},
  116.     }
  117.  
  118.     armor
  119.     {
  120.         .name = "armor?",
  121.     }
  122.  
  123.     armor_pen
  124.     {
  125.         .name = "armor penetration",
  126.         .tags = {e_stat_tag_damage},
  127.     }
  128.  
  129.     barrage
  130.     {
  131.         .name = "Barrage",
  132.         .tags = {e_stat_tag_utility},
  133.     }
  134.  
  135.     crit_chance
  136.     {
  137.         .name = "critical chance",
  138.         .tower_base = 5,
  139.         .tags = {e_stat_tag_damage},
  140.         .show_percentage_sign = true,
  141.         .allow_decimal_in_base = true,
  142.     }
  143.  
  144.     crit_damage
  145.     {
  146.         .name = "critical damage",
  147.         .tower_base = 150,
  148.         .tags = {e_stat_tag_damage},
  149.         .show_percentage_sign = true,
  150.     }
  151.  
  152.     placements
  153.     {
  154.         .name = "placements",
  155.         .singular_name = "placement",
  156.         .tags = {e_stat_tag_utility},
  157.     }
  158.  
  159.     orb_damage
  160.     {
  161.         .name = "orb damage",
  162.         .tags = {e_stat_tag_damage},
  163.     }
  164.  
  165.     projectile_chance
  166.     {
  167.         .name = "chance to fire an extra projectile",
  168.         .tags = {e_stat_tag_utility},
  169.         .show_percentage_sign = true,
  170.     }
  171.  
  172.     pierce_chance
  173.     {
  174.         .name = "chance for projectiles to gain an extra pierce",
  175.         .tags = {e_stat_tag_utility},
  176.         .show_percentage_sign = true,
  177.     }
  178.  
  179.     chain_lightning_chance
  180.     {
  181.         .name = "chain lightning chance",
  182.         .explanation = "Chain lightning creates a lightning bolt\nthat chains between 3 enemies\nand deals 30% of the hit damage",
  183.         .tags = {e_stat_tag_utility},
  184.         .show_percentage_sign = true,
  185.     }
  186.  
  187.     chain_lightning_damage
  188.     {
  189.         .name = "chain lightning damage",
  190.         .tags = {e_stat_tag_damage},
  191.     }
  192.  
  193.     chain_lightning_chain
  194.     {
  195.         .name = "chain lightning chains",
  196.         .singular_name = "chain lightning chain",
  197.         .tags = {e_stat_tag_utility},
  198.     }
  199.  
  200.     chain
  201.     {
  202.         .name = "chain",
  203.         .tags = {e_stat_tag_utility},
  204.     }
  205.  
  206.     chain_chance
  207.     {
  208.         .name = "chance for projectiles to gain an extra chain",
  209.         .tags = {e_stat_tag_utility},
  210.         .show_percentage_sign = true,
  211.     }
  212.  
  213.     orbs_per_upgrade
  214.     {
  215.         .name = "orbs per upgrade",
  216.         .tags = {e_stat_tag_utility},
  217.         .allow_decimal_in_base = true,
  218.     }
  219.  
  220.     chain_range
  221.     {
  222.         .name = "chain range",
  223.         .tower_base = 4,
  224.         .tags = {e_stat_tag_utility},
  225.     }
  226.  
  227.     confuse_chance
  228.     {
  229.         .name = "confuse chance",
  230.         .tags = {e_stat_tag_utility},
  231.         .show_percentage_sign = true,
  232.     }
  233.  
  234.     double_damage_chance
  235.     {
  236.         .name = "chance to deal double damage",
  237.         .tags = {e_stat_tag_damage},
  238.         .show_percentage_sign = true,
  239.     }
  240.  
  241.     poison_chance
  242.     {
  243.         .name = "poison chance",
  244.         .explanation = "Poison does 40% damage of the hit\nthat inflicted it, ignoring armor\nCan stack",
  245.         .tags = {e_stat_tag_poison},
  246.         .show_percentage_sign = true,
  247.     }
  248.  
  249.     poison_damage
  250.     {
  251.         .name = "poison damage",
  252.         .tags = {e_stat_tag_poison},
  253.     }
  254.  
  255.     poison_duration
  256.     {
  257.         .name = "poison duration",
  258.         .tags = {e_stat_tag_poison},
  259.     }
  260.  
  261.     // @Note(tkap, 12/09/2022): Currently this stat is only supported on item towers. So no skill tree, no upgrades, and specially not gems themselves.
  262.     gem_effect
  263.     {
  264.         .name = "effect of gems",
  265.         .tags = {e_stat_tag_utility},
  266.     }
  267.  
  268.     orb_attack_speed
  269.     {
  270.         .name = "orb attack speed",
  271.         .tags = {e_stat_tag_speed},
  272.         .display_as_decimal = true,
  273.     }
  274.  
  275.  
  276. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement