Commit graph

3734 commits

Author SHA1 Message Date
Griatch
fd4f72f4d0 Add unittest for talking_npc contrib as per #1105. 2017-02-19 21:30:24 +01:00
Griatch
a0b1a0cac1 Add unittests for simpledoor and slow_exit contribs, as per #1105. 2017-02-19 21:06:03 +01:00
Griatch
42c13ee870 Add unit tests for mapbuilder, menu_login and multidescer contribs, as per #1105. 2017-02-19 20:21:07 +01:00
Griatch
108dd35ee7 Add unittest for mail contrib; fix some inconsistencies and refactor to better handle errors. 2017-02-19 19:24:00 +01:00
Griatch
23cfd3ba17 Make attribute cache behavior consistent with the non-cached return when returning non-found objects as per #1226. 2017-02-19 17:36:35 +01:00
Griatch
7e762245c8 Add unittests for gendersub contrib as per #1105. 2017-02-19 14:54:40 +01:00
Griatch
1b9016d26a Add unittests to email_login contrib and also update it to work correctly with latest code. Pertains to #1105. 2017-02-19 14:35:42 +01:00
Griatch
e9a6465c65 Add unittest to contrib.dice as per #1105. 2017-02-19 13:41:56 +01:00
Griatch
46a5a62d2b Add unittests for contrib/chargen and custom_gametime. Removed unused time units settings from custom_gametime. 2017-02-19 13:10:17 +01:00
BlauFeuer
7e395ea7ec CmdQuell whitespace adjust to pass tests 2017-02-19 09:46:44 +01:00
BlauFeuer
a96ad804c0 Markup update 2017-02-19 09:46:44 +01:00
BlauFeuer
3d9695c86b Markup update 2017-02-19 09:46:44 +01:00
BlauFeuer
6192080811 Markup update 2017-02-19 09:46:43 +01:00
BlauFeuer
e40b9d14fa Markup update 2017-02-19 09:46:43 +01:00
BlauFeuer
46da1b9166 Markup, whitespace, LGTP and PEP 8 updates 2017-02-19 09:46:43 +01:00
BlauFeuer
be05b3a1c8 Markup, whitespace and PEP 8 updates 2017-02-19 09:46:43 +01:00
BlauFeuer
24bd3a6412 markup, whitespace and PEP 8
Indent and variable name updates, also.
2017-02-19 09:46:43 +01:00
BlauFeuer
ec11388531 Markup, whitespace, PEP 8 and docstring updates 2017-02-19 09:46:43 +01:00
BlauFeuer
3bae1190a9 markup and whitespace update 2017-02-19 09:46:43 +01:00
BlauFeuer
f857a43f4b Markup update, docstring and whitespace fixes 2017-02-19 09:46:43 +01:00
BlauFeuer
7f06bb4b73 Correct errant find/replace from last commit 2017-02-19 09:46:43 +01:00
Griatch
33000a55f6 Have CmdPerm check the 'edit' locktype when caller is a player instead of 'control' (which is not defined on players). Resolves #1223. 2017-02-19 09:25:21 +01:00
Tehom
959e5ec558 Put in fix for nicks.has check being True when returning list of False matches due to None caching. 2017-02-18 20:39:14 +01:00
Griatch
ee8c9a93c3 Add tentative errback for not firing an error when response is not fast enough to fire before a user closes the connection. Might handle #1207. 2017-02-18 20:32:13 +01:00
Griatch
d9e305702f Made sure to allow setting the option even though the client does not report it. Might help with #1218 ... maybe. 2017-02-18 19:41:10 +01:00
Griatch
865ab131bb Fix reference error in get_input. Resolves #1219. 2017-02-18 19:21:43 +01:00
BlauFeuer
a651490565 Refactor to remove alerts as per lgtm and #1176.
Should remove 2 string concatenation in a loop alerts.
2017-02-17 18:18:37 -05:00
BlauFeuer
ad1b0c7b77 contrib/tutorial_world/rooms.py Update markup +
whitespace and added `?` alias to help command consistent with pre-login and command help commands.
2017-02-16 21:39:11 -05:00
BlauFeuer
8dbd7163be contrib/tutorial_world/build.ev update markup only 2017-02-16 21:35:24 -05:00
BlauFeuer
c100a7765c contrib/extended_room.py code, markup updates
Whitespace edits, also
2017-02-16 21:31:48 -05:00
BlauFeuer
78ff1f39a0 contrib/email_login.py code cleanup, update markup
Line breaks at more visual locations
2017-02-16 21:28:36 -05:00
BlauFeuer
eef348b4ba contrib/dice.py code cleaning, update markup
Renames variable lparts to len_parts, removes redundant code
2017-02-16 21:24:37 -05:00
BlauFeuer
9b391fbe6b contrib/chargen.py code cleaning, update markup
Also remove commented code and redundant code
2017-02-16 21:21:20 -05:00
BlauFeuer
b1be4ade62 contrib/barter.py code cleaning, update markup
Renames partA/B variables to part_a/b
Typo fixes
2017-02-16 21:18:39 -05:00
BlauFeuer
81d35dad14 contrib/tests.py code cleaning, update markup 2017-02-16 21:14:10 -05:00
Griatch
1b3fb8fca9 Rename convert_gamescript to custom_gamescript to reflect its new function. Change names of the settings variables used to TIME_* to better match the settings naming style elsewhere. Add updated docstring to module; pertains to #1217. 2017-02-16 00:04:09 +01:00
Griatch
b91e12db20 Some cleanup of docstrings. 2017-02-15 23:43:49 +01:00
Vincent Le Goff
a69b335a9e Clean up in the gametime utility 2017-02-15 23:43:49 +01:00
Vincent Le Goff
e867b343cf Update the documentation of the contrib convert_gametime 2017-02-15 23:43:49 +01:00
Vincent Le Goff
7cd7d68a5a Add the script/functions to schedule events with a standard calendar 2017-02-15 23:43:49 +01:00
Vincent Le Goff
c18bfe7388 Update the time-sensitive script
Since the game time doesn't drift much anymore, the script doesn't
need to restart on startup.  The restart on repeat is kept, small
drifts could accumulate otherwise.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
95c8bf348b Save the game time before shutting down the server (avoids drfts) 2017-02-15 23:43:49 +01:00
Vincent Le Goff
c05a0a58bf Update the documentation for the schedule() function 2017-02-15 23:43:49 +01:00
Vincent Le Goff
753bd35226 The time epoch defined in settings can now be 0 (different from None).
The convert_gametime contrib now has a simple function to return gametime with units.
2017-02-15 23:43:49 +01:00
Vincent Le Goff
ee1fc0b648 Update the convert_gametime contrib (stable reload/restart) 2017-02-15 23:43:49 +01:00
Vincent Le Goff
ec63d43905 Add a check to not create a task to watch a script if the task already exists 2017-02-15 23:43:49 +01:00
Vincent Le Goff
f6988610cd Use Script.restart() in GametimeScript to change interval 2017-02-15 23:43:49 +01:00
Vincent Le Goff
64fd770b5a Add the gametime-sensitive script (errors in intervals) 2017-02-15 23:43:49 +01:00
Vincent Le Goff
c6ccc08ad0 Add the 'real_seconds_until' function in the gametime contrib 2017-02-15 23:43:49 +01:00
Vincent Le Goff
ab97f3674e Add optional settings to change game time measurement and units 2017-02-15 23:43:49 +01:00