Commit Graph

695 Commits

Author SHA1 Message Date
Crypto City
553c08d86f add predefined "macros" to scripts for well known values (item ids) 2025-08-25 14:20:20 +00:00
Crypto City
775e85a856 mushrooms now grow on empty flags
anyone can pick them
2025-08-25 14:20:20 +00:00
Crypto City
a12f5fefd9 functional_tests: decrease peak memory usage a bit 2025-08-16 20:23:31 +00:00
Crypto City
a01c2f6554 scripts can now be replaced
The replacement will be used when starting a new script, but already
started scripts will continue using the old one till finished

This will hopefully allow fixing small bugs as well as allow adding
more stuff to background scripts that are meant to supervise overall
game stuff like triggering events etc
2025-08-16 20:23:31 +00:00
Crypto City
d3cd7d1efc more work on script inputs
prevent duplicate input targets with different bounds
the game now checks format and bounds in realtime
2025-08-16 20:23:31 +00:00
Crypto City
eb5c33f13a add owner gold script operand 2025-08-10 20:28:46 +00:00
Crypto City
3aa1994a03 add numeric and string inputs to scripts 2025-08-10 20:28:46 +00:00
Crypto City
1c9075daf5 avatars can now select model and pronouns
though there is still only one model for now

also various tweaks and improvements to the avatar selection ui
2025-08-08 17:35:15 +00:00
Crypto City
7703164a0e tick scripts must have exactly one state 2025-08-08 17:35:14 +00:00
Crypto City
50bd50e066 functional_tests: print info needed to restart from existing chain 2025-08-08 17:35:14 +00:00
Crypto City
e72dbb7130 functional_tests: bump startup timeout from 20s to 30s 2025-08-08 17:35:14 +00:00
Crypto City
7d337db5e2 get_cc_scripts RPC now takes a set of types to return
an empty set (default) returns all types
2025-08-08 17:35:14 +00:00
Crypto City
89a427c494 add pickled vegetables food item
not used yet
2025-08-08 17:35:14 +00:00
Crypto City
b5adb017fb the daemon now does all the string substitutions
this makes the scripts more versatile and removes slight
(and some not so slight) differenes in processing

ignore processing is obviously still made in the game
2025-08-08 17:35:14 +00:00
Crypto City
c57e94bf76 functional_tests: add a bit more to the "all script features" test 2025-08-08 17:35:13 +00:00
Crypto City
a80e634992 functional_tests: check script states are properly saved/restored
also allow more daemon side access to locals and overrides
in string ouput (titles, logs and storyline events)
2025-08-01 07:02:25 +00:00
Crypto City
566c98edcd improve script group handling
script groups now have their own script type
the game script widget now supports groups more than one deep
also allow accessing the scripts screen without an account
2025-08-01 07:02:24 +00:00
Crypto City
3cc605dd06 functional_tests: add child scripts to the script group test 2025-08-01 07:02:24 +00:00
Crypto City
1a0d081c15 functional_tests: harden tests against random special events 2025-08-01 07:02:24 +00:00
Crypto City
df68a34618 functional_tests: fix replenishing food in a snowstorm 2025-08-01 07:02:24 +00:00
Crypto City
7c422a5846 prevent possible bad blocks due to random effects in game update
typically, a snowstorm starting
2025-08-01 07:02:23 +00:00
Crypto City
9e4582216c ensure players can't start background/tick scripts 2025-08-01 07:02:23 +00:00
Crypto City
246fe5f4b4 functional_tests: test scripts ending without user input 2025-08-01 07:02:23 +00:00
Crypto City
1a3307ab97 add script type to replace ad hoc flags 2025-08-01 07:02:23 +00:00
Crypto City
e88836ef0d rename destroy items to consume items 2025-08-01 07:02:22 +00:00
Crypto City
6d53dc521b prestige bonuses can now be negative 2025-08-01 07:02:22 +00:00
Crypto City
21d89b5c3d functional_tests: fix functional tests 2025-08-01 07:02:21 +00:00
Crypto City
38bf88f578 tweak some wording 2025-08-01 07:02:21 +00:00
Crypto City
f8dfe3d4c1 fix bad blocks due to pseudo random command effects 2025-08-01 07:02:21 +00:00
Crypto City
ad354a018c tick scripts
run at every tick for every non-game player
2025-08-01 07:02:21 +00:00
Crypto City
bbc8c290c7 functional_tests: do not skip functional tests for missing deepdiff 2025-08-01 07:02:21 +00:00
Crypto City
c9e7de0ac3 functional_tests: fix random failure to replenish food 2025-08-01 07:02:21 +00:00
Crypto City
da27e762da functional_tests: more robust role bonus test 2025-08-01 07:02:20 +00:00
Crypto City
a47504746f split attributes into base and bonus
bonus (given by scripts) can be negative, and the sum of base
and bonus can also be negative, including in scripts
2025-08-01 07:02:20 +00:00
Crypto City
29ad321c71 characters now have health and must eat to sustain health 2025-08-01 07:02:20 +00:00
Crypto City
a0a8c0285d mayors can now set a city welcome message 2025-08-01 07:02:19 +00:00
Crypto City
d7797a8ee9 scripts can now award temporary prestige bonuses 2025-08-01 07:02:18 +00:00
Crypto City
8fa82a3903 new appoint_new_head command 2025-08-01 07:02:17 +00:00
Crypto City
1c1dfb119a add new retire command and add profile to ancestor data 2025-08-01 07:02:16 +00:00
Crypto City
c12e1841ed rename die to retire, add retire script command, more retirement work 2025-08-01 07:02:16 +00:00
Crypto City
0e7bb6db8d add dead boolean to account data, RPC, player screen, etc 2025-08-01 07:02:15 +00:00
Crypto City
b8eef40bff add num ancestors script operand and %H/%A* script control codes 2025-08-01 07:02:14 +00:00
Crypto City
9df5f7b1c7 functional_tests: test profile can contain various weird characters 2025-08-01 07:02:14 +00:00
Crypto City
d7c5a737f9 add house name in account data 2025-08-01 07:02:14 +00:00
Crypto City
c2cf1ead49 cc: scripts can now change attributes 2025-08-01 07:02:13 +00:00
Crypto City
2bb64da531 fix reverting game updath when fishing ends in medium/far waters 2025-08-01 07:02:13 +00:00
Crypto City
79a97e93e8 consumable items can now be set to use 1 per N tiles
instead of 1 per flag, for balance purposes
2025-08-01 07:02:12 +00:00
Crypto City
8c8cd01a5a tx_pool: fix automatic addition of synthetic txes past the limit
also allow the game account to get past the limit
2025-07-31 16:22:57 +00:00
Crypto City
eef6e8f11a add epoch coins
having all of them gives you +1.5% prestige bonus
2024-11-22 20:46:17 +00:00
Crypto City
d0f605f433 nutrients use now depends on time a crop has been growing 2024-11-22 20:46:17 +00:00