Commit graph

3918 commits

Author SHA1 Message Date
Vincent Le Goff
44a73acd94 Chained events can now be called without delay 2017-05-06 14:42:57 +02:00
Vincent Le Goff
d483726d54 Add unittests for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
fae5877843 Fix a bug in Character.announce_move_to 2017-05-06 14:42:57 +02:00
Vincent Le Goff
c996e8c4b5 Add events on exits 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9c091b29e9 Fix some minor bugs in event connection/locking 2017-05-06 14:42:57 +02:00
Vincent Le Goff
38563a6593 Add an event handler on all objects 2017-05-06 14:42:57 +02:00
Vincent Le Goff
81f4c590bd Bring the event system to Evennia-style compliance 2017-05-06 14:42:57 +02:00
Vincent Le Goff
629ac73f2b Add the @event/tasks switch to follow differed tasks 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9fc163df57 Add a lock on editing events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
ccdb56c139 Add the @event/del switch to delete events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
8dc5c69d00 Fix a bug in time-related events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
d6c9d28d4f Add chained events with persistent delays 2017-05-06 14:42:57 +02:00
Vincent Le Goff
e898ee0ec2 Add the time-related events and events with parameters 2017-05-06 14:42:57 +02:00
Vincent Le Goff
1f4095c625 Rename the 'extend' module in 'custom' for events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
f0d5bec05f The @event/accept can now be used without parameters to see all events to be accepted 2017-05-06 14:42:57 +02:00
Vincent Le Goff
93c7b25fc4 Add the @event/accept switch 2017-05-06 14:42:57 +02:00
Vincent Le Goff
5e43f1370f Set @event/edit to be more clever when selecting events 2017-05-06 14:42:57 +02:00
Vincent Le Goff
88516630db Set event types in non-persistent data for the event handler 2017-05-06 14:42:57 +02:00
Vincent Le Goff
4bdee14adb Add the /add and /edit switches to the @event command 2017-05-06 14:42:57 +02:00
Vincent Le Goff
0d7b1cb2be Add the basic of the @event command 2017-05-06 14:42:57 +02:00
Vincent Le Goff
51bc9ac65a Add the first event on exit.at_traverse 2017-05-06 14:42:57 +02:00
Vincent Le Goff
74ab1ed030 Add basic structure of event types and helpers 2017-05-06 14:42:57 +02:00
Vincent Le Goff
9f581ea7e1 Add user documentation for the event system 2017-05-06 14:42:57 +02:00
Vincent Le Goff
a88e7ad4d9 Fix a typo in the README file 2017-05-06 14:42:57 +02:00
Vincent Le Goff
5e242589d9 Rewrite the README in a development-oriented documentation 2017-05-06 14:42:57 +02:00
Vincent Le Goff
841e0031ae Add the first draft of documentation for the event system 2017-05-06 14:42:57 +02:00
Tehom
5de1f7b45b Add dbclass to names of classdict for cache_size function to remove duplicate entries 2017-05-06 03:21:50 -04:00
Griatch
4d8d26fd21 Fix small typo in settings. Resolves #1316. 2017-05-03 22:52:08 +02:00
BattleJenkins
9b3ca3ef20 More thorough explanation of clothing types
Added some further explanation of clothing types and their purpose. I felt like it wasn't clear enough that you could change the given clothing types or even elect not to use clothing types at all in your own implementation of the system.
2017-04-30 21:59:41 +02:00
Griatch
477d7883c8 Fix so evennia.utils.delay actually returns a deferred as the docstring says. 2017-04-25 23:34:44 +02:00
Griatch
d012974650 Fix bug in irc disconnect, trying to pass a reason when portal.disconnect does not support one. 2017-04-25 22:59:59 +02:00
Griatch
6a621af4d7 Remove spurious whitespace from sources. 2017-04-23 14:06:27 +02:00
CloudKeeper1
9c37665f00 Updated documentation.
Updated documentation explaining use. Also mentioned the result of chaining get_inputs.
2017-04-23 14:06:27 +02:00
CloudKeeper1
4327bc48d3 Extended get_input to accept *args & **kwargs
Calling get_input with args and kwargs passes them to the callback function. Does not affect previous use so no changed required to existing code.
2017-04-23 14:06:27 +02:00
Tehom
7e8e47b3b3 Fix attribute name to resolve recursion error in _recache method. 2017-04-20 14:14:00 -04:00
BlauFeuer
ae2c2be8a1 Fix to color normalization end tag in Telnet.
Initial fix in #1243 does not account for empty string.
Addresses a potential problem in Telnet prompt similar to IndexError in telnet.py #1306
2017-04-19 06:40:51 +02:00
BlauFeuer
154799f6e0 Fix to color normalization end tag in ssh.
Initial fix in #1243 does not account for empty string.
Addresses a potential problem similar to IndexError in telnet.py #1306
2017-04-19 06:40:51 +02:00
Griatch
f7955340a7 Remove ability to teleport puppeted objects to a None location, as per #1304. 2017-04-18 18:29:11 +02:00
Griatch
feed89257f Fix indexing bug with using an accidental :: prefix in EvEditor, fix function of the ::: editor command. 2017-04-18 00:45:38 +02:00
Griatch
bc1f5f0fc9 Fix to color normalization end tag in telnet. Resolves #1306. 2017-04-17 08:52:18 +02:00
Griatch
0fb7d13d63 Correct for PEP8 compliance. Add contrib entry to README. 2017-04-17 08:43:01 +02:00
BattleJenkins
011ba18d5b Made command tests for clothing more robust
I added a lot more test cases to the command tests, ensuring that the system works as intended when given the appropriate arguments (as well as no arguments, as before).
2017-04-17 08:31:01 +02:00
BattleJenkins
8da7f45de8 Fixes in accordance with Griatch's suggestions
Made a few changes:

- Put the helper functions above the typeclasses in the module.
- Changed the example command given and changed the default clothing type 'body' to 'fullbody', so that clothing types aren't taken to mean wear locations by default
- Added note to CLOTHING_TYPE_AUTOCOVER explaining that only clothes that are already worn get auto-covered
- Fixed a traceback issue in CmdGive
2017-04-17 08:31:01 +02:00
BattleJenkins
5cc508393b Added unit tests for clothing module
Added in unit tests for the clothing module, including all commands, methods, and functions.
2017-04-17 08:31:01 +02:00
BattleJenkins
6c041b98a2 Typo fix
Fixed reintroduced typos from last commit. Still not using GitHub properly.
2017-04-17 08:31:01 +02:00
BattleJenkins
d0ba768fdb Change to inventory
Inventory command now outputs a single line when inventory is completely empty rather than two empty tables.
2017-04-17 08:31:01 +02:00
BattleJenkins
86f42228f3 Typo fix
Fixed a weird autocomplete-induced typo.
2017-04-17 08:31:01 +02:00
BattleJenkins
12ff57d883 Typo fix
Typoed 'Superuser' as 'Suuperuser'.
2017-04-17 08:31:01 +02:00
BattleJenkins
17f9a06a68 Provided example and fixed bugs
Added an example of use to the module descriptions, as well as fixed a couple of bugs where the at_get() hook wasn't functioning right and clothing with custom wear styles didn't appear correctly.
2017-04-17 08:31:01 +02:00
BattleJenkins
e7f0149bf8 Adds new 'clothing' contrib module
Adds a new contrib module, providing a system for wearable clothing objects that are appended to one's description. From the module itself:

Items of clothing can be used to cover other items, and many options are provided to define your own clothing types and their limits and behaviors. For example, to have undergarments automatically covered by outerwear, or to put a limit on the number of each type of item
that can be worn. Characters can also specify the style of wear for their clothing - I.E. to wear a scarf 'tied into a tight knot around the neck' or 'draped loosely across the shoulders' - to add an easy avenue of customization. The system as-is is fairly freeform - you can cover any garment with almost any other, for example - but it can easily be made more restrictive, and can even be tied into a system for armor or other equipment.

The unit tests have not been put in for this module yet, but I thought I would share it first to get people's thoughts!
2017-04-17 08:31:01 +02:00