Griatch
69d85bd184
Make scripts/objects lists use EvMore. Change EvMore to not justify by default.
2020-01-11 15:49:12 +01:00
Griatch
4ea6209123
Ran black on branc
2019-12-16 20:31:42 +01:00
Griatch
c2c7fa311a
Format code with black. Add makefile to run fmt/tests
2019-09-28 18:18:11 +02:00
Chason Chaffin
8fc7815189
Fixing bug in gametime module
...
Previously, gametime used the length of the current year and
current month to calculate the future date in the real_seconds_until
function. This caused a small bug when passing over a leap day from
a year without a leap day.
This change uses the datetime module to just increment the year
or month, sidestepping the issue.
2019-04-19 16:19:15 +09:00
Griatch
981119b640
Fix merge conflicts
2019-01-01 15:19:20 +01:00
Tehom
040cc2aa9f
Add portal uptime to @time command.
2018-10-18 04:24:03 -04:00
Griatch
72f4fedcbe
Merge with develop and fix merge conflicts
2018-10-01 20:58:16 +02:00
Griatch
1b9a083b19
Add TIME_IGNORE_DOWNTIMES to allow for true 1:1 time ratios. Implements #1545
2018-01-01 21:03:11 +01:00
Ryan Stein
6fa280b9fd
Run 2to3.
2017-10-29 13:40:30 -04:00
Griatch
b278337172
Make PEP8 cleanup of line spaces and character distances as well as indents
2017-08-19 23:16:36 +02:00
BlauFeuer
3d268eaa39
PEP 8 whitespace comply, visual align
2017-03-19 20:24:51 +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
7cd7d68a5a
Add the script/functions to schedule events with a standard calendar
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
c6ccc08ad0
Add the 'real_seconds_until' function in the gametime contrib
2017-02-15 23:43:49 +01:00
Griatch
008566f358
Move gametime conversion factors to contrib and remove them from the settings file with the motivation that the gametime constats were always highly game specific and a remnant from another time. Reworked the gametime library and add server epoch building from vincent-lg's original PR. The gametime module now deals exclusively in seconds.
2017-02-12 19:16:56 +01:00
Vincent Le Goff
59a5315c79
Add a setting to handle absolute game time (assuing standard a calendar)
...
The `@time` command now displays the game time epoch (can be set
in settings) and current game time (as a datetime).
2017-02-12 19:16:56 +01:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Griatch
95aa505b45
Add the evennia.utils.gamtime.reset_gametime() function, for restarting gametime from a later time than the server creation time.
2016-10-12 20:27:21 +02:00
Ahmed Charles
cbe1eefcf0
Move to python3 style division.
...
All of these are currently integer division in python2.
2015-11-01 20:47:18 +00:00
Griatch
eb2bd8d44c
Converted a large part of utils/ folder to google code docstrings as per #709 .
2015-09-27 20:24:03 +02:00
Griatch
895f8504cd
Run migrations! Removed global system scripts, moving into maintenance functions on the portal and server level. This means that runtimes will be reset as the system resets to the new system.
2015-03-06 16:54:37 +01:00
Griatch
71e9038c62
Started removing the global maintenance scripts, but ran into strange AMP issues.
2015-03-06 15:59:58 +01:00
Griatch
bbb99a9c28
Changed Script to DefaultScript to be consistent with other default typeclasses.
2015-01-24 19:08:54 +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