Commit graph

144 commits

Author SHA1 Message Date
Tehom
dd2c74231f Fix error in passing non-strings to str.join() 2017-12-08 03:00:43 -05:00
Tehom
71b039a180 Fix msg_receivers to be used 2017-12-08 02:41:33 -05:00
Griatch
a8603975a1 Merge back fixes into master 2017-10-01 16:55:51 +02:00
Griatch
da58d827cf Cleanup of at_say hook, pass outputfunc, support multiple receivers.
This is an API change since at_say(recever=...) is now
at_say(receivers=...). Since this was originally committed for devel, I
merge this into master. This resolves #1432 and #1433 and reimplements the changes by #1419 without the
addition of a new type kwarg.
2017-09-30 14:11:14 +02:00
Griatch
a6ed6ff5ea Better checks for pk in delete command. Update how the delete method of objects avoid recursive calls. Resolves #1453. 2017-09-30 12:00:42 +02:00
Griatch
fb773a9e75 Cleanup of at_msg_receive/send hooks 2017-09-21 09:50:20 +02:00
Griatch
604b36fb4e Fix traceback from public channel with chars and ircbot. Expand msg from_obj to accept lists. Resolves #1397. 2017-09-10 18:27:53 +02:00
Griatch
f68674fea9 Let caller.search_account query all Account classes. Resolves #1417. 2017-09-10 17:56:28 +02:00
Griatch
44f01c48da Remove limit on whispering to oneself.
Resolves #1416.
2017-09-03 10:31:45 +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
c43059c75f Rework at_before_say/at_say to handle whispers and using kwargs. 2017-07-21 12:17:47 +02:00
Griatch
8600e8c546 Fix merge conflicts with say-branch 2017-07-21 11:06:38 +02:00
Griatch
6d846c6c82 Add help entry to project_rename utility.
Also merge in latest master changes to devel branch.
2017-07-13 20:33:32 +02:00
Griatch
5590ee2258 Rename all instances of Player->Account. 2017-07-07 23:47:21 +02:00
Tehom
20a576a6d9 Convert to kwargs as suggested. 2017-06-25 02:40:53 -04:00
Tehom
9dc9df4227 Pass kwargs needed to overriding announce_move_to and announce_move_from in move_to 2017-06-18 17:21:33 -04:00
Griatch
0ff1718437 Resolve django 1.11 migration errors. 2017-06-17 22:15:00 +02:00
Griatch
f9e7b01f57 Add **kwargs options to at_* hooks to all typeclasses, for greater flexibility for users. Resolves #1276. 2017-04-20 20:58:35 +02:00
Tehom
7e8e47b3b3 Fix attribute name to resolve recursion error in _recache method. 2017-04-20 14:14:00 -04:00
Griatch
ee4dd20fd9 Fixes to batch_add mechanisms and spawner batch creation for passing unittests. 2017-04-09 18:53:39 +02:00
Griatch
d44f7c4670 Clean up docstring of _batch_create in spawner. 2017-04-09 10:52:59 +02:00
Griatch
e34d32bd60 Add ability to batch-add tags, permissions and aliases along with category in the object/player create functions as well as in the tag handler. This is useful for direct assignment of categories from prototypes. 2017-04-02 22:11:54 +02:00
Griatch
a648433db8 Merge conflicts against master, including cmdhandler support for direct cmdobject input together with prefix-ignore mechanism from devel. 2017-04-01 16:08:23 +02:00
BlauFeuer
6133280154 Explict bool return for move_to, typo fix 2017-03-30 01:27:34 -04:00
Vincent Le Goff
3811c074c6 Replace {character} by {object} in mapping of announce_move_* 2017-03-29 22:11:25 +02:00
Vincent Le Goff
f1d34a28aa Add additional mapping to announce_move_* hooks 2017-03-29 22:11:25 +02:00
Vincent Le Goff
4f41582127 Update Object.announce_move_* to take advantage of mapping 2017-03-29 22:11:25 +02:00
Griatch
d811d7577e Fix unittest compliance. 2017-03-29 22:00:27 +02:00
Griatch
f6e230f1a6 Change text optional kwarg type name to lowercase to match all other communications variables. Expand msg_contents to handle a tuple. 2017-03-29 21:50:51 +02:00
Vincent Le Goff
117d1b5809 Remove the deprecated Object.at_say hook 2017-03-29 12:14:32 -07:00
Vincent Le Goff
a5b26df330 Create hooks for the whisper command 2017-03-28 12:07:17 -07:00
Vincent Le Goff
f11e92b2c0 Add more flexibility to the hooks on say 2017-03-28 11:23:32 -07:00
Griatch
6266401c2d Re-add bool return name, it is required by API generator. 2017-03-25 11:40:55 +01:00
BlauFeuer
338899b8b1 Docstring, comments, indent/whitespace edits 2017-03-25 11:38:47 +01:00
Griatch
c4519d84e7 Remove spurious whitespace. 2017-03-25 10:01:56 +01:00
BattleJenkins
4e25c93888 Added at_give() hook to default object
Added another hook to the default object, at_give(), which will be called by the default give command.
2017-03-25 10:01:56 +01:00
Griatch
357e829d4e Make at_get_cmdset get receive a parallel kwarg. 2017-03-01 15:20:30 +01:00
Griatch
a0b1a0cac1 Add unittests for simpledoor and slow_exit contribs, as per #1105. 2017-02-19 21:06:03 +01: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
664ce178b2 Expanded docstring of at_object_receive to note the possibility. 2017-02-04 11:23:19 +01:00
BlauFeuer
3334d3f078 character's at_pre_puppet tweak
Triggering at_object_receive only when room actually receives character
and accurately reporting that character came from None seems most reasonable,
then at_object_receive can decide if appearance of character from None location is actionable.
2017-02-04 11:23:19 +01:00
BlauFeuer
1ed5a0b4a6 Change default at_pre_puppet for characters
No longer move character "back onto the grid" when not in None location.
This allows for Character objects to be moved while unpuppeted and remain
where placed when puppeted again.

Also updates markup in code within this module.
2017-02-04 11:23:19 +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
a09835049b Refactor wrong super() parents in a few managers. 2017-01-26 21:35:13 +01:00
Griatch
19e8528b04 Update ObjectSessionHandler to avoid a caching syncing issue; should resolve #1153. 2017-01-11 23:42:09 +01:00
Griatch
19e8bed5ab Fix docstring text error. 2016-11-30 18:02:39 +01:00
Griatch
1d6873eef4 Fix caching error in new cmdset merge regime. Removed debug messages. 2016-10-15 23:22:33 +02:00
Griatch
a61a33e87d Refactor ChannelHandler. Fix issues with new cmdset merge procedures. 2016-10-15 22:48:38 +02:00