Skip to content

Commit

Permalink
Mtn: balance fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 13, 2024
1 parent b095270 commit 0a6b8f2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
52 changes: 28 additions & 24 deletions maps/mountain_fortress_v3/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -561,18 +561,6 @@ local set_unit_raffle_token =
['mtn-addon-small-explosive-biter-t1'] = round(2500 - level * 1.75, 6),
['mtn-addon-small-poison-biter-t1'] = round(2500 - level * 1.75, 6),
['mtn-addon-small-fire-biter-t1'] = round(2500 - level * 1.75, 6),

['mtn-addon-small-piercing-biter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-acid-biter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-explosive-biter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-poison-biter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-fire-biter-t2'] = round(2000 - level * 1.75, 6),

['mtn-addon-small-piercing-biter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-acid-biter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-explosive-biter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-poison-biter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-fire-biter-t3'] = round(1500 - level * 1.75, 6),
}
)
WD.set(
Expand All @@ -583,22 +571,38 @@ local set_unit_raffle_token =
['mtn-addon-small-explosive-spitter-t1'] = round(2500 - level * 1.75, 6),
['mtn-addon-small-poison-spitter-t1'] = round(2500 - level * 1.75, 6),
['mtn-addon-small-fire-spitter-t1'] = round(2500 - level * 1.75, 6),

['mtn-addon-small-piercing-spitter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-acid-spitter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-explosive-spitter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-poison-spitter-t2'] = round(2000 - level * 1.75, 6),
['mtn-addon-small-fire-spitter-t2'] = round(2000 - level * 1.75, 6),

['mtn-addon-small-piercing-spitter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-acid-spitter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-explosive-spitter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-poison-spitter-t3'] = round(1500 - level * 1.75, 6),
['mtn-addon-small-fire-spitter-t3'] = round(1500 - level * 1.75, 6),
}
)
local biter_raffle = WD.get('biter_raffle') --[[@as table]]
local spitter_raffle = WD.get('spitter_raffle') --[[@as table]]

if level > 100 then
biter_raffle['mtn-addon-small-piercing-biter-t2'] = round(2000 - level * 1.75, 6)
biter_raffle['mtn-addon-small-acid-biter-t2'] = round(2000 - level * 1.75, 6)
biter_raffle['mtn-addon-small-explosive-biter-t2'] = round(2000 - level * 1.75, 6)
biter_raffle['mtn-addon-small-poison-biter-t2'] = round(2000 - level * 1.75, 6)
biter_raffle['mtn-addon-small-fire-biter-t2'] = round(2000 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-piercing-spitter-t2'] = round(2000 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-acid-spitter-t2'] = round(2000 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-explosive-spitter-t2'] = round(2000 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-poison-spitter-t2'] = round(2000 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-fire-spitter-t2'] = round(2000 - level * 1.75, 6)
end

if level > 200 then
biter_raffle['mtn-addon-small-piercing-biter-t3'] = round(1500 - level * 1.75, 6)
biter_raffle['mtn-addon-small-acid-biter-t3'] = round(1500 - level * 1.75, 6)
biter_raffle['mtn-addon-small-explosive-biter-t3'] = round(1500 - level * 1.75, 6)
biter_raffle['mtn-addon-small-poison-biter-t3'] = round(1500 - level * 1.75, 6)
biter_raffle['mtn-addon-small-fire-biter-t3'] = round(1500 - level * 1.75, 6)


spitter_raffle['mtn-addon-small-piercing-spitter-t3'] = round(1500 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-acid-spitter-t3'] = round(1500 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-explosive-spitter-t3'] = round(1500 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-poison-spitter-t3'] = round(1500 - level * 1.75, 6)
spitter_raffle['mtn-addon-small-fire-spitter-t3'] = round(1500 - level * 1.75, 6)
end
if level > 250 then
biter_raffle['mtn-addon-medium-piercing-biter-t1'] = round(250 - (level - 250), 6)
biter_raffle['mtn-addon-medium-acid-biter-t1'] = round(250 - (level - 250), 6)
Expand Down
2 changes: 1 addition & 1 deletion modules/wave_defense/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ Event.add(Public.events.on_spawn_unit_group, spawn_unit_group)
Event.add(Public.events.on_spawn_unit_group_simple, spawn_unit_group_simple)

Event.on_nth_tick(
50,
100,
function ()
local final_battle = Public.get('final_battle')
if final_battle then
Expand Down
2 changes: 1 addition & 1 deletion modules/wave_defense/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Public.reset_wave_defense()
this.side_target_count = 0
this.active_biter_count = 0
this.active_biter_threat = 0
this.average_unit_group_size = 24
this.average_unit_group_size = 16
this.biter_raffle = {}
this.debug = false
this.inverted = false
Expand Down

0 comments on commit 0a6b8f2

Please sign in to comment.