Commit graph

25 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Griatch
be482c31e7 Re-implemented a modern version of the Tutorial mob. Removed the tutorial scripts completely. 2015-02-22 17:46:55 +01:00
Griatch
48774d0f3c Merge branch 'patch-2' of https://github.com/ahmedcharles/evennia into ahmedcharles-patch-1 2015-02-13 07:39:15 +01:00
Ahmed Charles
7347aef9fd Fix permissions bug due to class rename.
evennia.objects.objects.Object was renamed to
evennia.objects.objects.DefaultObject.
2015-02-12 22:24:06 -08:00
Ahmed Charles
f5e99c6341 Remove redundant check in perm(). 2015-02-12 17:59:00 -08:00
Griatch
ad3f19896c Changed all src/ and ev references to evennia 2015-01-07 15:36:32 +01:00
Griatch
c7325a5032 Further reworking, naming the library folder 'evennia' instead of lib or src. 2015-01-07 13:36:57 +01:00
Renamed from lib/locks/lockfuncs.py (Browse further)