Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add blackfroest scenario #1332

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion features/create_particles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,23 @@ function CreateParticles.destroy_rock(create_particle, particle_count, position)
end
end

---@param create_particle function a reference to a surface.create_particle
---@param particle_count number particle count to spawn
---@param position Position
function CreateParticles.destroy_tree(create_particle, particle_count, position)
for _ = scale_floor(particle_count), 1, -1 do
settings.particles_spawned_buffer = settings.particles_spawned_buffer + 1
create_particle({
name = 'leaf-particle',
position = position,
movement = {random(-5, 5) * 0.01, random(-5, 5) * 0.01},
height = random(9, 11) * 0.1,
vertical_speed = random(12, 14) * 0.01,
frame_speed = 1,
})
end
end

---@param create_particle function a reference to a surface.create_particle
---@param particle_count number particle count to spawn
---@param position Position
Expand Down Expand Up @@ -181,7 +198,7 @@ function CreateParticles.mine_rock(create_particle, particle_count, position)
end


---Creates a prototype for LuaSurface.create_entity
---Creates a prototype for LuaSurface.create_particle
---@param particle string name of the particle
---@param x number
---@param y number
Expand Down
27 changes: 27 additions & 0 deletions locale/de/redmew_maps.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,30 @@ cutscene_case_line6=Die folgende Einführung wird dir zum Einstieg helfen!
cutscene_case_line7=Wenn du Probleme mit den Zwischensequenzen hast, lass es uns wissen
cutscene_case0_line1=Dies ist der Startbereich

[black_forest]
float_xp_drain=-__1__ XP
float_xp_gained_kill=+__1__ XP
float_xp_gained_rocket=Rakete gestartet! +__1__ XP
float_xp_gained_research=Forschung abgeschlossen! +__1__ XP
float_xp_gained_mine=+__1__ XP
player_drained_xp=__1__ hat __2__ Erfahrung abgezogen.
market_disabled=Freigeschaltet bei Level:__1__
gui_total_xp=__1__ Gesamterfahrung erhalten!
gui_reward_item=Belohnungsgegenstand
gui_reward_buff=Belohnungs Buff
gui_requirement=Anforderung
gui_progress_tip=Derzeit auf Level:__1__\nNächstes Level bei:__2__ xp\nVerbleibend:__3__ xp
gui_progress_caption=Fortschritt bis zum nächsten Level:
gui_progress_bar=__1__% xp zum nächsten Level
gui_tabel_level=Level __1__
gui_tabel_xp=XP: __1__
gui_buff_level=Alle Stufen
gui_buff_mining=+__1__% Abbau Geschwindigkeit (bis zu:__2__%)
gui_buff_inv=+__1__ Inventar Feld(er) (bis zu: __2__)
gui_buff_health=+__1__ max Gesundheit (bis zu: __2__)
gui_buff_other=+__1__ __2__
gui_experience_button_tip=Black Forest Level Fortschritt
gui_close_btn=Schließen
toast_new_level=Dein Team hat Level __1__ erreicht!
score_mine_size=Mapgröße
score_experience_lost=Verlorene Erfahrung
30 changes: 30 additions & 0 deletions locale/en/redmew_maps.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,33 @@ biters_disabled=Launching the first [item=satellite] has killed all the biters.
win=Congratulations! The map has been won. Restart the map with /restart
satellite_launch=Launch another __1__ [item=satellite] to win the map.

[black_forest]
float_xp_drain=-__1__ XP
float_xp_gained_kill=+__1__ XP
float_xp_gained_rocket=Rocket launched! +__1__ XP
float_xp_gained_research=Research completed! +__1__ XP
float_xp_gained_mine=+__1__ XP

player_drained_xp=__1__ drained __2__ experience.

market_disabled=Unlocks at level: __1__

gui_total_xp=__1__ total experience earned!
gui_reward_item=Reward Item
gui_reward_buff=Reward Buff
gui_requirement=Requirement
gui_progress_tip=Currently at level: __1__\nNext level at: __2__ xp\nRemaining: __3__ xp
gui_progress_caption=Progress to next level:
gui_progress_bar=__1__% xp to next level
gui_tabel_level=level __1__
gui_tabel_xp=XP: __1__
gui_buff_level=All levels
gui_buff_mining=+__1__% mining speed (up to: __2__%)
gui_buff_inv=+__1__ inventory slot(s) (up to: __2__)
gui_buff_health=+__1__ max health (up to: __2__)
gui_buff_other=+__1__ __2__
gui_experience_button_tip=Black Forest leveling progress
gui_close_btn=Close
toast_new_level=Your team has reached level __1__!
score_mine_size=Map size
score_experience_lost=Experience lost
Loading