Skip to content

Commit 2fa2627

Browse files
authored
Merge branch 'master' into drop
2 parents af802f1 + e286269 commit 2fa2627

File tree

191 files changed

+3796
-1302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+3796
-1302
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
- [ ] This PR has been tested locally

.github/workflows/build.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/luacheck.yml

Lines changed: 10 additions & 0 deletions
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

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ debug.txt
1313
/mods/ctf/ctf_map/textures/*Back.*
1414
/mods/ctf/ctf_map/textures/*Left.*
1515
/mods/ctf/ctf_map/textures/*Right.*
16-
/mods/ctf/ctf_map/textures/*_screenshot.png
16+
/mods/ctf/ctf_map/textures/*_screenshot.png
17+
18+
*.blend1

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ 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

5152
Created by [rubenwardy](https://rubenwardy.com/).
5253
Developed by [LandarVargan](https://github.com/LoneWolfHT).
5354
Previous Developers: [savilli](https://github.com/savilli).
5455

55-
Licenses where not specified:
56-
Code: LGPLv2.1+
57-
Textures: CC-BY-SA 3.0
58-
59-
### Textures
56+
Check out [mods/](mods/) to see all the installed mods and their respective licenses.
6057

61-
* [Header](menu/header.png): CC BY-SA 4.0 by xenonca
62-
* [Background Image](menu/background.png): CC0 (where applicable) by Apelta (Uses [Minetest Game](https://github.com/minetest/minetest_game) textures, the majority of which are licensed CC-BY-SA 3.0). The player skin used is licensed CC-BY-SA 3.0
58+
Licenses where not specified:\
59+
Code: [GNU LGPLv2.1+](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)\
60+
Media: [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/)
6361

64-
### Mods
62+
### Textures
6563

66-
Check out [mods/](mods/) to see all the installed mods and their respective licenses.
64+
* [Header](menu/header.png): [CC BY 3.0 Unported](https://creativecommons.org/licenses/by/3.0/) by [SuddenSFD](https://github.com/SuddenSFD)
65+
* [Background Image](menu/background.png): [CC BY-SA 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/) (where applicable) by [GreenBlob](https://github.com/a-blob) (Uses [Minetest Game](https://github.com/minetest/minetest_game) textures, the majority of which are licensed [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/)). The player skins used are licensed under [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/)
66+
* [Icon](menu/icon.png): [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) by [SuddenSFD](https://github.com/SuddenSFD)

docs/accurate_statbar.patch

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ index 46c947b6..f4372843 100644
66
local hud_ids = {}
77

88
local function scaleToDefault(player, field)
9-
+ return player["get_" .. field](player)
10-
- -- Scale "hp" or "breath" to the default dimensions
11-
- local current = player["get_" .. field](player)
12-
- local nominal = core["PLAYER_MAX_".. field:upper() .. "_DEFAULT"]
13-
- local max_display = math.max(nominal,
14-
- math.max(player:get_properties()[field .. "_max"], current))
15-
- return current / max_display * nominal
9+
+ if field == "health" then
10+
+ return player["get_" .. field](player)
11+
+ else
12+
-- Scale "hp" or "breath" to the default dimensions
13+
local current = player["get_" .. field](player)
14+
local nominal = core["PLAYER_MAX_".. field:upper() .. "_DEFAULT"]
15+
local max_display = math.max(nominal,
16+
math.max(player:get_properties()[field .. "_max"], current))
17+
return current / max_display * nominal
18+
+ end
1619
end
1720

1821
local function update_builtin_statbars(player)

docs/ctf-api.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
CaptureTheFlag Lua API Reference
22
==================================
33

4+
# Code Style
5+
* Use tabs for indentation.
6+
47
# mods/apis/
58
This folder contains a collection of mods with the main goal of providing an API
69

@@ -21,7 +24,7 @@ ctf_settings.register("my_setting", {
2124
on_change = function(player, new_value)
2225
<...>
2326
end
24-
}
27+
})
2528
```
2629

2730
### `ctf_settings.set(player, setting, value)`
@@ -36,7 +39,10 @@ ctf_settings.register("my_setting", {
3639

3740
---
3841
# mods/ctf/
39-
TODO
42+
TODO, below is a collection of quick notes for later
43+
44+
## ctf_teams
45+
* https://modern.ircdocs.horse/formatting.html#colors-16-98
4046

4147
---
4248
# mods/mtg/

menu/background.png

1.36 MB
Loading

menu/header.png

-39.3 KB
Loading

menu/icon.png

-2.82 KB
Loading

0 commit comments

Comments
 (0)