Commit Graph

11 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
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
ebdee72684 Add standard monoids and tests 2016-06-12 22:15:26 -07:00
raymoo
de25711530 Fix def missing and spacetabs 2016-05-27 16:25:10 -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
b6e7bd44a3 stubs 2016-05-25 22:07:06 -07:00