Skip to content

Commit 815c9d1

Browse files
authored
Merge branch 'master' into tnt
2 parents 08dff0e + 2ad37e5 commit 815c9d1

File tree

13 files changed

+125
-32
lines changed

13 files changed

+125
-32
lines changed

.github/workflows/build.yml

-16
This file was deleted.

.github/workflows/luacheck.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: luacheck
2+
on: [push, pull_request]
3+
jobs:
4+
luacheck:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
- name: Luacheck
10+
uses: lunarmodules/luacheck@master

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Note that this version may be slightly behind the git version, but it will be a
4545
* If you use Visual Studio Code we recommend these extensions:
4646
* https://marketplace.visualstudio.com/items?itemName=sumneko.lua
4747
* https://marketplace.visualstudio.com/items?itemName=dwenegar.vscode-luacheck
48+
* https://marketplace.visualstudio.com/items?itemName=GreenXenith.minetest-tools
4849

4950
## License
5051

mods/ctf/ctf_modebase/features.lua

+18-14
Original file line numberDiff line numberDiff line change
@@ -687,15 +687,7 @@ return {
687687

688688
celebrate_team(pteam)
689689

690-
local text = " has captured the flag"
691-
if many_teams then
692-
text = " has captured the flag of team(s) " .. HumanReadable(teamnames)
693-
minetest.chat_send_all(
694-
minetest.colorize(tcolor, pname) ..
695-
minetest.colorize(FLAG_MESSAGE_COLOR, text)
696-
)
697-
end
698-
ctf_modebase.announce(string.format("Player %s (team %s)%s", pname, pteam, text))
690+
699691

700692
ctf_modebase.flag_huds.untrack_capturer(pname)
701693

@@ -706,7 +698,19 @@ return {
706698
score = math.max(75, math.min(500, score))
707699
capture_reward = capture_reward + score
708700
end
709-
701+
local text = " has captured the flag"
702+
if many_teams then
703+
text = string.format(
704+
" has captured the flag of team(s) %s and got %d points",
705+
HumanReadable(teamnames),
706+
capture_reward
707+
)
708+
minetest.chat_send_all(
709+
minetest.colorize(tcolor, pname) ..
710+
minetest.colorize(FLAG_MESSAGE_COLOR, text)
711+
)
712+
end
713+
ctf_modebase.announce(string.format("Player %s (team %s)%s and got %d points", pname, pteam, text, capture_reward))
710714
local team_score = team_scores[pteam].score
711715
for teammate in pairs(ctf_teams.online_players[pteam].players) do
712716
if teammate ~= pname then
@@ -721,12 +725,12 @@ return {
721725
teams_left = teams_left - #teamnames
722726

723727
if teams_left <= 1 then
724-
local capture_text = "Player %s captured"
728+
local capture_text = "Player %s captured and got %d points"
725729
if many_teams then
726-
capture_text = "Player %s captured the last flag"
730+
capture_text = "Player %s captured the last flag and got %d points"
727731
end
728732

729-
ctf_modebase.summary.set_winner(string.format(capture_text, minetest.colorize(tcolor, pname)))
733+
ctf_modebase.summary.set_winner(string.format(capture_text, minetest.colorize(tcolor, pname), capture_reward))
730734

731735
local win_text = HumanReadable(pteam) .. " Team Wins!"
732736

@@ -746,7 +750,7 @@ return {
746750

747751
for lost_player in pairs(ctf_teams.online_players[lost_team].players) do
748752
team_switch_after_capture = true
749-
ctf_teams.allocate_player(lost_player)
753+
ctf_teams.allocate_player(lost_player)
750754
team_switch_after_capture = false
751755
end
752756
end

mods/ctf/ctf_modes/ctf_mode_classes/classes.lua

+4
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ local function select_class(player, classname)
391391
player = PlayerObj(player)
392392
if not player then return end
393393

394+
if classname == classes.get_name(player) then
395+
return
396+
end
397+
394398
if ctf_modebase.current_mode == "classes" and dist_from_flag(player) <= 5 then
395399
cooldowns:set(player, CLASS_SWITCH_COOLDOWN)
396400
classes.set(player, classname)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# textdomain: ctf_report
2+
<msg>=<mensaje>
3+
Report misconduct or bugs=Reportar falta de conducta o errores
4+
Please add a message to your report.=Por favor añade un mensaje a tu reporte
5+
If it's about (a) particular player(s), please also include their name(s).=Si trata sobre jugadores en especifico, por favor incluye sus nombres.
6+
If you're reporting a player,=Si estás reportando a un jugador,
7+
you should also include a reason why (e.g. swearing, griefing, spawnkilling, etc.).=también debes de incluir el motivo (p.j., decir malas palabras, destrucción, matar tan rápido que un jugador aparezca, etc.)
8+
Report has been sent.=El reporte ha sido enviado.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# textdomain: afkkick
2+
Allow to AFK without being kicked=Permite estar inactivo sin ser sacado del juego
3+
Warning, you have @1 seconds to move or be kicked=Advertencia, tienes @1 segundo(s) para moverte o ser sacado del juego
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# textdomain: random_messages
2+
3+
To talk to only your team, start your messages with /t. For example, /t Hello team!=Para hablar únicamente a tu equipo, comienza tus mensajes con /t. Por ejemplo, /t ¡Hola equipo!
4+
Use apples to quickly restore your health.=Use manzanas para restaurar tu salud rápidamente
5+
Moving or fighting can avoid an inactivity kick.=Moverse o pelear puede evitar ser sacado por inactividad
6+
Gain more score by killing more than you die, by healing teammates with bandages, or by capturing the flag.=Gana más puntos por tener más asesinatos que muertes, dando vida a tus compañeros de equipo con vendajes, o capturando la bandera.
7+
You gain more score the better the opponent you defeat.=Obtendrás mejor puntuación cuanto mejor sea el oponente que derrotes.
8+
Find weapons in chests or mine and use furnaces to make stronger swords.=Encuentra armas en los cofres o mina y use hornos para crear espadas más fuertes.
9+
Use team doors (steel) to stop the enemy walking into your base.=Use puertas del equipo (hierro) para prevenir al enemigo entrar a tu base.
10+
Sprint by pressing the fast key (E) when you have stamina.=Corre presionando la tecla de rápido (E) cuando tengas resistencia.
11+
Like CTF? Give feedback using /report, and consider donating at rubenwardy.com/donate=¿Te gusta CTF? De su opinión usando /report, y considere donar en rubenwardy.com/donate
12+
Want to submit your own map? Visit https://github.com/MT-CTF/maps to get involved.=¿Quieres publicar tu propio mapa? Visita https://github.com/MT-CTF/maps para participar.
13+
Using limited resources for building structures that don't strengthen your base's defences is discouraged.=Usar recursos limitades para construir estructuras que no fortalezcan las defensas de tu base no esta aconsejado.
14+
To report misbehaving players to moderators, please use /report <name> <action>=Para reportar jugadores que se porten mal a los moderadores, por favor use /report <nombre> <acción>
15+
Swearing, trolling and being rude will not be tolerated and strict action will be taken.=Decir maldiciones, engañar y ser grosero no será tolerado y se tomarán medidas estrictas.
16+
Trapping team mates on purpose is strictly against the rules and you will be kicked immediately.=Atrapar a tus compañeros de equipo a propósito esta estrictamente en contra de las reglas y serás sacado fuera inmediatamente.
17+
Help your team claim victory by storing extra weapons in the team chest, and never taking more than you need.=Ayuda a tu equipo reclamar la victoria guardando armas adicionales en el cofre del equipo, y nunca tomar más de lo que necesites.
18+
Excessive spawn-killing is a direct violation of the rules - appropriate punishments will be given.=Matar a otros jugadores que acaban de aparecer excesivamente es una violación directa de las reglas - se darán los castigos necesarios.
19+
Use /r to check your rank and other statistics.=Use /r para ver tu clasificación y otras estadísticas.
20+
Use /r <playername> to check the rankings of another player.=Use /r <nombredejugador> para ver las clasificaciones de otro jugador.
21+
Use bandages on team-mates to heal them by 3-4 HP if their health is below 15 HP.=Use vendajes en tus compañeros de equipo para darles 3-4 de vida si su salud esta debajo de 15 de vida.
22+
Use /m to add a team marker at pointed location, that's visible only to team-mates.=Use /m para añadir un marcador en la ubicación señalada, que es solamente visible para tus compañeros de equipo.
23+
Use /summary (or /s) to check scores of the current match and the previous match.=Use /summary (o /s) para ver las puntuaciones de la partida actual y de la partida anterior.
24+
Strengthen your team by capturing enemy flags.=Fortalece tu equipo capturando banderas enemigas.
25+
Hitting your enemy does more damage than not hitting them.=Pegarle a tu enemigo hace más daño que no pegarle.
26+
Use /top50 command to see the leaderboard.=Use /top50 para ver la tabla de clasificación.
27+
Use /top50 <mode:technical modename> to see the leaderboard on another mode. For example: /top50 mode:nade_fight.=Use /top50 <modo:nombre de modo técnico> para ver la tabla de clasificación en otro modo. Por ejemplo: /top50 mode:nade_fight.
28+
To check someone's rank on another mode use /r <mode:technical modename> <playername>. For example: /r mode:nade_fight randomplayer.=Para ver la clasificación de alguien en otro modo use /r <modo:nombre de modo técnico> <nombredejugador>. Por ejemplo: /r mode:nade_fight jugador
29+
To check someone's team use /team player <player_name>.=Para ver a que equipo pertenecé alguien use /team player <nombre_de_jugador>.
30+
To check all team members use /team.=Para ver todos los miembros de tu equipo use /team.
31+
You can capture multiple enemy flags at once!=¡Puedes capturar multiples banderas enemigas al mismo tiempo!
32+
Consider joining our Discord server at https://discord.gg/vcZTRPX=Considera unirte a nuestro servidor de Discord en https://discord.gg/vcZTRPX
33+
You can press sneak while jumping, to jump up two blocks.=Puedes presionar sneak mientras brincas, para brincar dos bloques.
34+
Use /donate <playername> <score> to reward a team-mate for their work.=Use /donate <nombredejugador> <puntos> para recompensar a un compañero del equipo por su trabajo.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# textdomain: random_messages
2+
3+
To talk to only your team, start your messages with /t. For example, /t Hello team!=
4+
Use apples to quickly restore your health.=
5+
Moving or fighting can avoid an inactivity kick.=
6+
Gain more score by killing more than you die, by healing teammates with bandages, or by capturing the flag.=
7+
You gain more score the better the opponent you defeat.=
8+
Find weapons in chests or mine and use furnaces to make stronger swords.=
9+
Use team doors (steel) to stop the enemy walking into your base.=
10+
Sprint by pressing the fast key (E) when you have stamina.=
11+
Like CTF? Give feedback using /report, and consider donating at rubenwardy.com/donate=
12+
Want to submit your own map? Visit https://github.com/MT-CTF/maps to get involved.=
13+
Using limited resources for building structures that don't strengthen your base's defences is discouraged.=
14+
To report misbehaving players to moderators, please use /report <name> <action>=
15+
Swearing, trolling and being rude will not be tolerated and strict action will be taken.=
16+
Trapping team mates on purpose is strictly against the rules and you will be kicked immediately.=
17+
Help your team claim victory by storing extra weapons in the team chest, and never taking more than you need.=
18+
Excessive spawn-killing is a direct violation of the rules - appropriate punishments will be given.=
19+
Use /r to check your rank and other statistics.=
20+
Use /r <playername> to check the rankings of another player.=
21+
Use bandages on team-mates to heal them by 3-4 HP if their health is below 15 HP.=
22+
Use /m to add a team marker at pointed location, that's visible only to team-mates.=
23+
Use /summary (or /s) to check scores of the current match and the previous match.=
24+
Strengthen your team by capturing enemy flags.=
25+
Hitting your enemy does more damage than not hitting them.=
26+
Use /top50 command to see the leaderboard.=
27+
Use /top50 <mode:technical modename> to see the leaderboard on another mode. For example: /top50 mode:nade_fight.=
28+
To check someone's rank on another mode use /r <mode:technical modename> <playername>. For example: /r mode:nade_fight randomplayer.=
29+
To check someone's team use /team player <player_name>.=
30+
To check all team members use /team.=
31+
You can capture multiple enemy flags at once!=
32+
Consider joining our Discord server at https://discord.gg/vcZTRPX=
33+
You can press sneak while jumping, to jump up two blocks.=
34+
Use /donate <playername> <score> to reward a team-mate for their work.=

mods/other/select_item/locale/select_item.de.tr

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# textdomain:select_item
1+
# textdomain: select_item
2+
23
Cancel=Abbrechen
34
Page @1/@2=Seite @1/@2
45
Select an item:=Wählen Sie einen Gegenstand:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# textdomain: select_item
2+
3+
Cancel=Cancelar
4+
Page @1/@2=Página @1/@2
5+
Select an item:=Selecciona un artículo:
6+
There are no items to choose from.=No hay artículos para elegir.

mods/other/select_item/locale/template.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# textdomain:select_item
1+
# textdomain: select_item
2+
23
Cancel=
34
Page @1/@2=
45
Select an item:=
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# textdomain: throwable_snow
2+
@1 hit you with a snowball!=¡@1 te pegó con una bola de nieve!
3+
Snowball=Bola de nieve

0 commit comments

Comments
 (0)