Commit Graph

27 Commits

Author SHA1 Message Date
SmallJoker
deddbfd740 Clean up structure and add checks
1. Ensures that monoids are registered correctly
2. Type checks on effect changes
3. Consistent use of object-oriented functions (':_get_player_data', ...)
4. 'branch:delete(...)' now also returns 'true' on success

The code still has inconsistent variable naming in several places, which
should be addressed later for easier understanding.
2026-01-10 20:46:04 +01:00
SmallJoker
bd16be2930 Tests: ensure integrity and fix up style issues
This change also greatly reduces the execution time of the tests.
2025-06-09 12:51:22 +02:00
Gio
ee81c59f2c Branching system (#10)
This commit enhances the player_monoids library by adding branching support and an improved testing system to make sure it works, as proposed in #9 . These changes enable isolated player state management and improve library reliability. This PR focuses on implementing the branching proposal and adding automated tests.
2025-05-17 18:10:30 +02:00
celeron55
8d6f1ade93 README.md: Return from example fold methods (#8) 2024-08-29 14:35:28 +02:00
Raymoo
08bc018f92 Don't save player ref after callback 2022-03-05 23:16:01 -06:00
raymoo
ed11a7395b Merge pull request #6 from Panquesito7/master
Use mod.conf for description / remove extra whitespace / give monoid_master privilege to admin
2019-10-17 21:43:18 +00:00
Panquesito7
1e12f0e293 Give privilege automatically to admin
The 'monoid_master' privilege is given to admin automatically.
2019-10-17 13:37:03 -05:00
Panquesito7
4df04550e3 Remove empty lines 2019-10-17 13:35:10 -05:00
Panquesito7
ca996b5dcb Use mod.conf for description
Deletes deprecated description.txt
2019-10-17 13:31:16 -05:00
Raymoo
668bce3772 Fix luacheck errors, thanks to kaeza 2017-03-13 18:55:14 -07:00
Raymoo
481ef9e2cd Fix missing argument 2017-03-11 11:33:47 -08:00
raymoo
cdb597629f Fix discrepancy between docs and actual functions 2016-08-05 13:45:44 -07:00
raymoo
ef6f07b6fa Fix readme nested monoids example 2016-06-14 17:01:53 -07:00
raymoo
d76cde2dc1 bower.json 2016-06-14 12:39:48 -07:00
raymoo
dd3b37f2c7 Deprecatoin 2016-06-12 22:16:37 -07:00
raymoo
8121b95c1d standard monoids and playereffects use in readme 2016-06-12 22:15:55 -07:00
raymoo
ebdee72684 Add standard monoids and tests 2016-06-12 22:15:26 -07:00
raymoo
21bf2c8a70 test 2016-06-12 22:15:13 -07:00
raymoo
8d294ca65f standard monoids 2016-06-12 22:15:08 -07:00
raymoo
de25711530 Fix def missing and spacetabs 2016-05-27 16:25:10 -07:00
raymoo
025f1d398a Remove caveats from API 2016-05-27 15:35:11 -07:00
raymoo
9936955821 Move caveats into README 2016-05-27 15:34:53 -07:00
raymoo
a5c5184933 Make monoids remove players from themselves on leave 2016-05-26 09:30:25 -07:00
raymoo
3b3904d1d6 Mostly done, I think 2016-05-26 07:58:23 -07:00
raymoo
b9c56d6a6d Update API 2016-05-26 07:58:16 -07:00
raymoo
9150eb12d2 API fixes 2016-05-25 22:10:56 -07:00
raymoo
b6e7bd44a3 stubs 2016-05-25 22:07:06 -07:00