Commit graph

7847 commits

Author SHA1 Message Date
Tegiminis
a30e152405 removed none checks (lol), fixed getter to return empty dict instead of None 2022-07-27 11:37:39 -07:00
Tegiminis
19b498626d added has() method, fixed None checks on properties 2022-07-27 10:58:07 -07:00
Tegiminis
0503fa9b0b Merge branch 'develop' of github.com:Tegiminis/evennia into develop 2022-07-26 11:27:32 -07:00
Tegiminis
5fa92d8b26 fixed refresh rule for unique buffs 2022-07-26 11:26:36 -07:00
Tegiminis
65123c10c5 Update README.md 2022-07-25 12:01:36 -07:00
Tegiminis
a95dea471f readme review, made non-unique/refresh namespace less prone to collision 2022-07-24 23:19:36 -07:00
Tegiminis
6ba3cf12fc fixing goofs exposed by conditional rework, readme tweaks (+8 squashed commit)
Squashed commit:

[7d0ff84f5] more readme changes... i can't stop...

[8259163dc] added new removers for parity with getters, altered conditional logic

[d1db0e4a2] added getter/remover section

[0bec38d51] misc fixes

[614df9883] adding test for stack removal, fix to stack removal logic

[77149aaaf] third readme edit, buff module docstring edit, tweak to modgen samplebuff

[ca992fd1c] editing buff section of readme

[f33eec3d8] first edit of readme
2022-07-24 18:53:52 -07:00
Tegiminis
a1e004ded5 initial readme commit 2022-07-24 03:53:23 -07:00
Tegiminis
3a52913bbb new unit tests for the new getters/remove methods. general test case improvement (+47 squashed commit)
Squashed commit:

[da8f778e1] fixed issue with buff instancing saving previous cache information

[50e381135] fixing clear to use new private method

[523196876] added new removal methods, spun boilerplate into private method

[ab2fe7a1b] misc

[4a2c2e887] added get_by_cachevalue, for arbitrary cache value comparison

[4e9199fd9] fix expired property

[cc6411eb2] added option to trigger buffs at the same time you check them

[eb112c12f] added get_by_source method to slice cache by source

[5d880d4f9] added "clear" method to remove all buffs

[49997e724] extended "expired" logic to include buffs with no stacks

[7ef357ade] docstring fixes

[306801d02] Added a little docstring bit for disconnecting autopause from signals and moving it to object puppet hooks

[7a120a2f8] fixed the sample buff for poison to demonstrate how playtime buff pause hooks happen (as at_pause fires after the object is moved to None, you can't message the None-room's contents)

[ada4457d1] made the pause variable assignments more verbose

[d64369908] nomenclature change: uid -> buffkey

[e5dd9a352] fixing places where the handler property name change from "db" to "buffcache" broke stuff on the buff class

[553d12b4b] lots of docstring updates and comments; also made conditional hook work with ticking

[b8d79583f] ran black autoformatter

[d5550f331] changing all the default dictionary assignments to None instead

[88c9a4889] sample buff of stat customizer

[72323a19e] added sample buff which allows stat customization, and unit test to cover it

[02453a79f] adding procgen ids for non-unique, non-refresh (ie, each time the buff is applied, it is as a full instance with a separate key)

[c72e5f2d7] added to_filter argument to slice methods, letting you slice an arbitrary dictionary as well as the main cache

[d8996f3a3] stress test for batch read/trigger

[f06f74463] last bit of cacheing, docstring update

[538afc676] fixing tests to not use __getattr__ on the handler

[905cfd6bb] removing __getattr__

[e588742ea] hooking caching into the buff instancing process

[7555ebae9] added method to instance entire cache, refactored dict-comprehension properties to use new method. should be more efficient?

[45f15fc46] fix to reapply logic; stacking and old cache

[d2460c9e6] docstring support for to_cache arg

[62f3f27d8] added to_cache arg for buff application, allows you to store arbitrary info in the buff cache

[6c2046497] general cleanup

[357945459] forgot to finish the mod for the "sated" moodlet sample buff

[b4b3ac48a] clamp minimum multiplier to 0

[da3e67fa6] allowing multiple stacks, cruft cleanup

[62110fd00] sample buffs

[77f6a56e8] fixing tests to work with new naming

[a9202f67c] misc cleanup

[887d9734b] allow infinite stacks

[887fb4b29] change duration setter

[da4277e2c] add at_pre_check

[6009469bc] fix pickling errors with handler properties

[89a2d02ee] allo ticking buffs to autopause

[a77bded93] fix flavor return

[60fcaa36f] swapping on_ to at_ for hooks to match evennia style

[130e600ea] import cleanup
2022-07-24 03:33:06 -07:00
Tegiminis
f340d4c6e4 initial buff contrib commit 2022-07-12 01:22:59 -07:00
Tegiminis
8a9ccb4bbe unit tests for customized attributeproperty getter/setter 2022-07-11 02:16:25 -07:00
Tegiminis
38606f4edb Revert "remove unused argument"
This reverts commit 296c966ae6.
2022-07-10 03:55:52 -07:00
Tegiminis
296c966ae6 remove unused argument 2022-07-10 03:48:54 -07:00
Tegiminis
248df1a19b docstring fix 2022-07-10 03:25:56 -07:00
Tegiminis
6fca198a70 makes attributeproperties object-aware, part 2 2022-07-10 03:20:16 -07:00
Tegiminis
da0e380fa5 Merge branch 'develop' of github.com:Tegiminis/evennia into develop
# Conflicts:
#	evennia/typeclasses/attributes.py
2022-07-10 02:34:13 -07:00
Tegiminis
614a9ab048 makes attributeproperty "object-aware" 2022-07-10 02:32:05 -07:00
Griatch
5814883949 Add vale linter config for docs 2022-07-05 19:24:53 +02:00
Griatch
c82ad50f9e Set echo option, probably no effect 2022-07-04 18:22:43 +02:00
Griatch
6c8eef5961 Merge pull request #2784 from InspectorCaracal/rpsystem-aliases
rpsystem: Always include aliases as candidates
2022-07-03 12:02:49 +02:00
InspectorCaracal
5140cf36c2 typo 2022-06-28 12:00:51 -06:00
InspectorCaracal
42718e21d6 include aliases in candidates 2022-06-28 11:53:46 -06:00
Griatch
30c9499564 Merge pull request #2781 from avalonhope/develop
Unit tests for search_script_attribute and seach_script_tag
2022-06-26 09:44:53 +02:00
Avalon Hope
81f52bffd0 Merge pull request #3 from avalonhope/avalonhope-unit-test-search-script
Unit tests for search_tag_attribute and additional unit test for search_tag_script
2022-06-22 10:56:18 +01:00
Avalon Hope
10a543d023 Update test_search.py 2022-06-22 10:30:13 +01:00
Avalon Hope
975c38c0af Update test_search.py 2022-06-22 10:06:31 +01:00
Avalon Hope
5db14e8c4d Update test_search.py 2022-06-22 09:39:45 +01:00
Avalon Hope
f8c6ca2797 Unit test for search_script_attribute 2022-06-22 09:38:57 +01:00
Griatch
515c7e21fe Merge pull request #2779 from cfcohen/devedits
Typos from master, plus a couple more.
2022-06-22 08:31:09 +02:00
Griatch
c619d03639 Limit jinja2 version for sphinx error 2022-06-22 08:25:17 +02:00
Griatch
1552888972 Merge pull request #2777 from hellgheast/fix-doc-build
Testing to fix the jinja2 problem
2022-06-22 08:23:34 +02:00
Cory F. Cohen
7321173d3b A couple more typos that are only on develop. 2022-06-21 21:13:06 -04:00
Cory F. Cohen
a05ec09f51 Fix various typos in several files.
All are in comments and docstrings, and none should be controversial
in any way (e.g. British versus American spelling).
2022-06-21 21:12:45 -04:00
Avalon Hope
2922c0c7d9 Update test_search.py 2022-06-21 12:23:49 +01:00
Hellgheast
66b3770f6e Testing to fix the jinja2 problem 2022-06-21 11:28:21 +02:00
Griatch
421229d280 Merge pull request #2775 from hellgheast/beginner-tutorial-typos
Beginner tutorial typos
2022-06-21 08:10:56 +02:00
Griatch
1d8fa44418 Merge pull request #2773 from InspectorCaracal/links-doc-update
Update the Links page
2022-06-20 21:48:42 +02:00
InspectorCaracal
c10121bde2 remove IRC, update docker-compose 2022-06-20 13:32:33 -06:00
Griatch
ba2319c19f Merge pull request #2772 from avalonhope/develop
Adding unit tests for script search
2022-06-20 21:12:01 +02:00
Hellgheast
ac3830fdf8 doc : sethelp removed the /add switch 2022-06-20 19:38:20 +02:00
Hellgheast
87402e1c8a doc: Correction of red_button calls 2022-06-20 19:18:16 +02:00
Hellgheast
4fdbae04c2 doc: Fixing bodyfunctions script call 2022-06-20 19:05:18 +02:00
Hellgheast
1e66de58ab Update Building-Quickstart.md
Changing the description command to desc (which exist in dev-1.0)
2022-06-20 18:45:20 +02:00
InspectorCaracal
8c612fd3e3 add discord relay 2022-06-17 13:25:09 -06:00
InspectorCaracal
342c8a6218 match line-item syntax, alphabetize 2022-06-17 13:22:32 -06:00
InspectorCaracal
ef6080ea43 Update and reorganize Links 2022-06-17 13:17:36 -06:00
Avalon Hope
87d77c6105 Adding unit tests for script search 2022-06-17 09:35:02 +01:00
Griatch
a83f21ef2f Apply black to cleanup code 2022-06-12 09:46:48 +02:00
Griatch
45ed27c7f1 Another update to the readme 2022-06-12 01:05:00 +02:00
Griatch
9c09d3a893 Update to readme 2022-06-12 00:56:01 +02:00