Commit graph

27 commits

Author SHA1 Message Date
ANAND
181b13d1d0 ctf_stats: Add ctf_stats.request_save
This functionality allows mods to request a save (not immediate) if they modify player stats.
2020-05-20 23:28:30 +05:30
ANAND
f1a2006ec5 ctf_stats: Separate save-checking code from the actual saving code
This allows mods to directly call ctf_stats.save without having to pass unnecessary params like force_save = true.
2020-05-20 23:28:30 +05:30
ANAND
5dfa347642
ctf_stats: Immediately write to mod storage at end of match (#608)
Add an optional force_save param to ctf_stats.save to allow bypassing the _needs_save check.
2020-05-07 11:19:20 +05:30
MinetestSam
6238fb2540
ctf_stats: Add sniper rifles to good_weapons (#605) 2020-05-01 18:32:36 +05:30
ANAND
733f4460f7
ctf_stats: Remove unused code
Leftover by commit a417e857
2020-04-23 12:16:45 +05:30
ANAND
a417e857ef
Improve match duration metric; move to ctf_match (#539) 2020-04-21 20:19:57 +05:30
ANAND
446def1294
Rename on_skip_map to on_skip_match (#581) 2020-04-21 07:38:31 +05:30
ANAND
ffdb5dd799 Add /s chat-command alias for /summary 2020-04-12 12:37:56 +05:30
rubenwardy
d973815a18 Fix variants of class items being allowed to drop 2020-03-14 20:00:32 +00:00
ANAND
54598ce947
Fix comparison of number with nil 2020-01-10 12:05:13 +05:30
MinetestSam
f955ac8916 Disallow transfer of stats if source and destination are same (#554) 2020-01-06 15:05:40 +05:30
ANAND
123695cd0e
ctf_stats: Tweak scoring algorithm a bit (#538) 2019-12-27 19:10:27 +05:30
MinetestSam
daafb12363 Change greater than operations to greater than or equal to in is_pro (#528) 2019-12-15 20:47:19 +01:00
MinetestSam
d25e060d90 Double the scores awarded for attempts and captures (#526) 2019-12-15 18:59:37 +05:30
Thomas--S
19ce34153b
Increase score requirements for is_pro
Closes #519
2019-12-05 19:36:03 +01:00
ANAND
6e35425e4c Add ctf_stats.is_pro; consolidate "pro-ness" calculations (#517) 2019-12-05 19:33:38 +01:00
ANAND
6b33c8e9cc
ctf_stats: Add support for retrieving stats by rank (#454) 2019-11-27 11:30:39 +05:30
ANAND
7e73ff05eb
Refactor ctf_stats [Part 1] (#491)
Move all chat-commands into separate file - chat.lua
2019-11-25 10:31:53 +05:30
ANAND
4de074dc17 ctf_stats: Add map name to match summary (#495) 2019-11-24 21:38:15 +01:00
ANAND
5eb5d3311a
Improve log messages (#422)
- Add log messages wherever required/useful
- Remove unnecessary log messages and print statements
- Convert print statements to minetest.log
- Fix incorrect log level for some messages
- Trivial code-style fixes
2019-10-18 11:22:18 +05:30
Panquesito7
515b0ca1f7
Use mod.conf and modpack.conf
Replaces depends.txt, description.txt, and modpack.txt
2019-08-31 10:31:14 +05:30
rubenwardy
e53732f41e Remove saving from ctf_pvp_engine 2019-08-28 18:46:14 +01:00
ANAND
29a0861aef
Add HUD score elements for flag pickup and capture (#378) 2019-03-19 22:34:41 +05:30
ANAND
123ed6d1f5 Extend /summary to show scores of current match as well
Fixes #310
2019-03-17 01:37:20 +00:00
ANAND
5643fdf802 Add hud_score mod API
Fixes #72
2019-03-17 01:35:51 +00:00
ANAND
84c55a3d7a Reduce width of name column in scores formspec (#344) 2019-02-23 15:11:35 +00:00
rubenwardy
b38a89c2fe Reorganise game into modpacks 2019-01-11 15:52:47 +00:00