Skip to content

Commit

Permalink
Mtn v3 - minor adjust to startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Oct 6, 2023
1 parent fa914c7 commit 51f199a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion locale/en/mtn_fortress_v3.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,3 @@ warp=[font=default-bold]Time until boss arena: [/font]

reset=[color=blue]Mapkeeper:[/color] Reset date has been reached. The buffs and rounds survived has been reset!
reset_discord=Reset date has been reached. The buffs and rounds survived has been reset!
warn_biters_boosted=Attention! Biters have been increased in health and damage over __1__ times. They grant more XP but are harder to kill!
12 changes: 1 addition & 11 deletions maps/mountain_fortress_v3/stateful/table.lua
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,6 @@ local function apply_startup_settings(settings)
end
end

local starting_items = Public.get_func('starting_items')

apply_buffs(starting_items)
return settings
end

Expand Down Expand Up @@ -717,7 +714,7 @@ local apply_settings_token =

this.rounds_survived = settings.rounds_survived

Public.reset_stateful(false, true)
Public.reset_stateful()
Public.increase_enemy_damage_and_health()
end
)
Expand Down Expand Up @@ -965,13 +962,6 @@ function Public.increase_enemy_damage_and_health()
Event.raise(WD.events.on_biters_evolved, {force = game.forces.aggressors_frenzy})
end
end

if this.rounds_survived == 0 then
return
end

local message_discord = ({'stateful.warn_biters_boosted', this.rounds_survived})
Server.to_discord_embed(message_discord, true)
end

function Public.get_stateful(key)
Expand Down

0 comments on commit 51f199a

Please sign in to comment.