Commit graph

138 commits

Author SHA1 Message Date
ANAND
d4c612d2fb Fix flag claimed right after creation (#433)
Regression introduced by abbd62ac:

- Since abbd62ac, all map metas are loaded at server startup.
- In `ctf_match.create_teams`, `map.teams.pos` is passed to `ctf_flag.add`.
- As tables are passed by reference, properties added to `ctf.team("team_name").flags[i]` are also added to ctf_map.map.teams.
- This means that the next time this table is passed to `ctf_flag.add`, this table would already contain the `claimed` property, that holds the name of the player who last claimed the flag at this pos, and the name of their team.

This is fixed by simply passing `map.teams.pos` to `ctf_flag.add` using `table.copy`
2019-07-11 08:57:10 +02:00
ANAND
f3cd2a0539
Update maps submodule 2019-07-06 14:03:19 +05:30
ANAND
c30d3d84d9
ctf_map: Fix per-map treasures registering at server startup (#421)
Fixes regression introduced by abbd62ac, which calls `load_map_meta` for all maps right at server startup, instead of calling it per-map for every new match.
2019-07-06 10:16:04 +05:30
ANAND
102792032a
Update maps submodule 2019-07-05 19:57:35 +05:30
Lone_Wolf
03f368743e ctf_map: Force-register aliases (#423)
Fixes aliases not being registered, as they are names of existing items.
2019-07-05 06:21:13 +05:30
ANAND
62eb068c35
Increase capacity of team-chest (#380)
+ cosmetic and code-style improvements
2019-06-23 12:34:15 +05:30
Thomas--S
74c8531de4 Maps catalog: Use textareas for hint and license, add others (#413) 2019-05-15 20:34:25 +05:30
ANAND
72f48db70d
Update maps submodule
Screenshots have been added for all existing maps
2019-05-12 23:37:37 +05:30
Thomas--S
16ba9ef044 update.sh: Move map screenshots to ctf_map/textures/ (#411) 2019-05-12 23:06:39 +05:30
Thomas--S
4d6b3512ab ctf_map: Move duplicated code to helper function (#410) 2019-05-12 23:03:32 +05:30
Thomas--S
9956606899 Maps catalog: Abort if no maps are available (#412) 2019-05-12 22:49:14 +05:30
ANAND ︻气デ═一
abbd62acc8
Add maps catalog (#381)
This allows maps to have a description, a valid viewable license, screenshot, etc.
2019-05-12 18:53:31 +05:30
ANAND
fea07d8ae8
Exclude map's initial_stuff from list of treasures (#385) 2019-04-10 15:37:31 +05:30
rubenwardy
8b2174a7dc Remove saplings and flint fully 2019-03-21 17:45:39 +00:00
ANAND
daf09af648
Update maps sub-module (#384)
Includes fix for unknown items, due to maps specifying wooden tools as initial stuff.
2019-03-20 13:32:57 +05:30
ANAND
ed85e3258b
Fix indestructible snow and ice not being slippery (#377) 2019-03-19 22:34:25 +05:30
ANAND
86ce4d7328
Completely remove wooden tools (#331)
The default items given on respawn will consist of wooden tools instead.
2019-03-19 22:24:43 +05:30
ANAND
a3b41c154c Rename indestructible wool nodes (+ documentation and cleanups) (#367) 2019-03-17 14:43:31 +00:00
ANAND
ab423cea90 Fix param passed to get_player_by_name being nil (#374) 2019-03-17 10:49:00 +00:00
ANAND
b1da18dd86 Add map info to server status message (#175) 2019-03-17 03:38:24 +00:00
rubenwardy
e3a8f95f59 Add ctf_map.get_team_relative_z() and ctf_map.can_cross() 2019-03-17 03:33:12 +00:00
ANAND
7fa6da30bf Refactor and clean-up map_maker (#306) 2019-03-17 02:15:29 +00:00
rubenwardy
762682ea80
Merge ctf_team_base into ctf_map 2019-03-17 01:36:15 +00:00
Thomas--S
1a2948b359 Fix normal -> unbreakable bug 2019-03-09 23:30:08 +00:00
Anand S
a5eb95b9ec Update maps sub-module 2019-03-06 07:27:29 +00:00
rubenwardy
82fb96c168 Fix rebase issue 2019-03-05 13:15:09 +00:00
ANAND
cb08c8c6e0 Fix furnace meta not being wiped 2019-03-05 13:10:00 +00:00
archfan
ee8073eed1 Add killnode 2019-03-05 12:44:14 +00:00
MinetestSam
20daeebead Add traps 2019-03-05 12:39:55 +00:00
rubenwardy
0095c18678 Merge branch 'master' of github.com:MT-CTF/capturetheflag into dev5.0 2019-03-05 11:09:48 +00:00
ANAND
91c5f47886 Allow maps to optionally specify custom treasures (#351) 2019-02-24 05:11:16 +00:00
ANAND
3955a1d765 Fix missing indestructible stairs and wool 2019-02-23 15:10:15 +00:00
rubenwardy
947715fbe8 Fix bugs introduced by Minetest 5.0 2019-02-03 04:21:27 +00:00
MinetestSam
5daefadc7e Add 'Indestructible' prefix to indestructible nodes 2019-01-16 18:46:20 +00:00
ClobberXD
9f3c9afec4 Fix textures placed in the incorrect directory 2019-01-16 10:43:07 +00:00
ClobberXD
dd722cb08a Provide a large set of indestructible nodes with ctf_map 2019-01-13 16:53:36 +00:00
rubenwardy
4d299b19d6 Readd maps submodule 2019-01-11 18:51:35 +00:00
rubenwardy
b38a89c2fe Reorganise game into modpacks 2019-01-11 15:52:47 +00:00