Griatch
ed187ad05f
Various fixes from game jam
2019-05-14 10:33:31 +02:00
Griatch
ebb2fb6c1c
Clean up with 2to3
2018-10-13 19:43:17 +02:00
Griatch
72f4fedcbe
Merge with develop and fix merge conflicts
2018-10-01 20:58:16 +02:00
Griatch
6a90ccd0af
Fix lockhandler import error
2018-09-14 22:12:12 +02:00
Griatch
566481310c
Update CHANGELOG, delay import of dummy handler
2018-08-31 09:57:24 +02:00
Griatch
4f72f0ccbb
List lockfuncs in menu, more elaborate doc strings
2018-07-24 20:48:54 +02:00
Griatch
116f6e7505
Fix unittests, resolve bugs
2018-06-10 20:00:35 +02:00
Griatch
054cba42bf
Refactor prototype-functionality into its own package
2018-06-06 19:15:20 +02:00
Griatch
d71b281b56
Merge with develop branch, resolve conflicts
2018-05-09 17:39:10 +02:00
Griatch
2f985c882b
Fix lockhandler singleton implmentation with a dummyobj
2018-04-25 22:34:33 +02:00
Griatch
c9ecd3b997
Add check_lockstring as a function in locks/lockhandler.py
2018-04-22 22:28:43 +02:00
Griatch
641ea746a5
Further stabilizing of spawner storage mechanism and error checking
2018-03-18 17:28:52 +01:00
Griatch
0967c9f668
Add lockhandler.append to update lock string
2018-03-18 16:31:01 +01:00
Griatch
3b7648ec0e
Correct bugs in lock-handling, add more unit tests
2018-02-03 01:17:52 +01:00
Ryan Stein
7d524ac328
Unwrap for expressions in comprehensions, too.
2017-11-02 22:52:16 -04:00
Ryan Stein
6fa280b9fd
Run 2to3.
2017-10-29 13:40:30 -04:00
Griatch
b737c209b1
Correct lockhandler's handling of lock-lists
2017-08-31 20:58:34 +02:00
Griatch
92df3ce5ae
Structure handlers to allow .get() to return lists
...
See #1154 . In the end I didn't modify the Attributehandler and
TagHandler like this, instead I added the `return_list` argument
for cases when one wants a guaranteed return.
2017-08-27 14:56:05 +02:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
0bd47f0c52
Change permission strings so Immortals->Developer, Wizards->Admin, Builders->Builder, PlayerHelper->Helper, Players->Player, Guests->Guest. Made perm() and pperm() lock function accept both the plural and singular form (so both Admin and Admins work). Still lacking a data migration for updating an existing database to the new setup.
2017-02-17 23:25:09 +01:00
Griatch
a9f08760cc
Further refactoring towards #1176 .
2017-02-02 00:02:58 +01:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Griatch
c6d9c0619e
Refactor code for readability and compatibility.
2017-01-27 00:19:27 +01:00
Griatch
b57b807da6
Make lockwarning log file name settable; turn off if not set. Resolves #1161 .
2017-01-11 21:37:32 +01:00
Tehom
3ff9eac86c
Have lockshandler fail gracefully rather than cause a server crash
2016-10-07 10:06:49 +02:00
Griatch
1a30079fd4
Fix how the lock command returns strings to avoid a malformed AMP send. This (again fixes ##996.
2016-06-15 20:02:32 +02:00
Griatch
d966051558
Changing utils.all_from_module to really only load variables actually
...
defined in the module in question (so will no longer include imports
from other modules). Added utils.callables_from_module to handle the
common case of only wanting callable functions from a module (used by
lock funcs, inlinefuncs etc).
2016-05-22 20:45:05 +02:00
Griatch
c1e4b1fe07
Further fixes to the tag lockfunc as well as handling of the changes to at_look to not include calling execute_cmd(look) but to use the at_look hook. This should finally resolve #889 .
2015-12-15 20:17:41 +01:00
Ahmed Charles
11b61fe335
Import python3 compatible object.
2015-11-02 00:19:04 +01:00
Griatch
c7e1a6a086
Resolved merge conflicts against master.
2015-10-20 00:07:39 +02:00
Ahmed Charles
9b17fa450d
Remove unnecessary assignment.
2015-10-19 23:32:13 +02:00
Griatch
50371b6abd
Merged conflicts.
2015-10-19 23:32:00 +02:00
Griatch
cf2d283707
Removed a debug printout.
2015-10-02 20:27:20 +02:00
Russell Jones
06c3dc0ed3
Run "futurize -1 -w -n ."
2015-10-01 20:00:28 +01:00
Griatch
a8e75dde7f
Made lockhandler.delete be called lockhandler.remove to match all other handlers. Kept the old one as a deprecated alias.
2015-09-26 18:56:14 +02:00
Griatch
23e63111cc
Further work on stabilizing output across different situations.
2015-09-26 18:56:14 +02:00
Griatch
11750be556
Fixed a bug in the attr lockfunc to make it properly handle comparison for Nonetypes and bools as well as other values. Also fixed a malformed call for a default value. Resolves #753 .
2015-06-01 21:56:29 +02:00
Griatch
58465ef93c
Updated lock system to use Google-style syntax as per #709 .
2015-05-17 13:14:41 +02:00
Griatch
1680fe6b84
Removed a sectioning marker and updated the coding style file to be a little clearer on that.
2015-03-09 08:15:44 +01:00
tajmone
b34e8cb740
lockfuncs.py
...
I've updated the docstrings. It contained a kind of table which I
converted to a multi-line code block (easier and simpler approach in my
view), and I've made sure that it never exceeds 70 chars in code block
(reformatted it all to fit).
2015-03-09 08:08:20 +01:00
Griatch
9ffba037f8
Updated the tutorial world's lockfuncs to work correctly. Resolves #682 .
2015-03-02 21:35:55 +01:00
Griatch
b015f4802a
Added better docstrings to subpackages and cleaned out some places which were unclear.
2015-02-23 17:46:42 +01:00
Jonathan Piacenti
c03bac5efd
Upgrade test runner to derive from DiscoveryRunner.
2015-02-23 15:06:30 +01:00
Griatch
c1243a9d6d
Fixed a bug in mob movement that had it ignore its own check for traversal-permission
2015-02-22 17:46:55 +01:00
Griatch
4e11b2b5b5
Fixed bug in dark room. The mob currently has issues accepting exit locks
2015-02-22 17:46:55 +01:00
Griatch
ca69c5aaec
Changed the attr, objattr and locattr lockfuncs. attr and locattr now looks for a property .obj on accessing_obj and will use this instead as accessing_obj. This makes attr/locattr useful in commands (the caller gets checked rather than the command body itself, which doesn't have attributes). objattr() now instead checks for an attribute on the accessed_obj rather than on accessing_obj.obj as was its old function.
2015-02-22 17:46:55 +01:00
Griatch
5af3617d4e
Fixed errors in bridge room. Some issues with tickerhandler starting with an invalid interval.
2015-02-22 17:46:55 +01:00
Griatch
6f4cbbc1be
The reworked tutorial world builds now without error; need to play-test it.
2015-02-22 17:46:55 +01:00
Griatch
c63ae1742f
Reworked the build script and made the default tutorial_room more clever, using details and custom cmdsets.
2015-02-22 17:46:55 +01:00