Commit graph

33 commits

Author SHA1 Message Date
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
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
Jonathan Piacenti
52fa4dd60b Made test running environment more robust and consistent. 2015-02-08 18:34:12 -06:00
Jonathan Piacenti
4491110dc1 Permit checking of different lock types from one lock string. 2015-02-08 18:10:11 -06:00
Griatch
f15e05c247 Working on bugs with getting system to go through initialization sanely. 2015-01-08 16:54:50 +01: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