Commit Graph

10645 Commits

Author SHA1 Message Date
Crypto City
0320b917d4 game: fix reported prestige ranking for players with 0 prestige 2022-08-04 08:36:32 +00:00
Crypto City
ecee19e61d cc: do not add "overall amounts" treasury events if the amount is 0 2022-08-04 08:36:32 +00:00
Crypto City
682259a9cf game: fix item creation checks
it is now possible to create an item with 0 instances if it is set
to be able to create more later, and it is possible to imbue an item
with less than 1 gold
2022-08-04 08:36:32 +00:00
Crypto City
7f4019c2a7 serialization: add boost::optional 2022-08-04 08:36:32 +00:00
Crypto City
aaf24f1338 allow seting more than one global variable at once, for atomicity 2022-08-04 08:36:32 +00:00
Crypto City
687d7d2f57 game: allow prefix lookups in set global variable screen 2022-08-04 08:36:32 +00:00
Crypto City
1eb17281a7 game: fix variable lookup field namespace 2022-08-04 08:36:32 +00:00
Crypto City
6bfc447544 custom items may now have a prestige bonus
only the game account can add prestige bonuses
2022-08-04 08:36:31 +00:00
Crypto City
8f403a7d43 game: fix rare fish prestige contribution in player info screen 2022-08-04 08:36:31 +00:00
Crypto City
6c4a31509a new "tax break zone" city specialization 2022-08-04 08:36:31 +00:00
Crypto City
fb9ba895ad fix typo in create_items archive tags 2022-08-02 06:19:05 +00:00
Crypto City
a001101027 game: sea ice freezes below -5 degrees 2022-08-02 06:19:05 +00:00
Crypto City
e5c5b88881 merge snow and nosnow ground shaders, and add water/nowater defines
also fix an artifact between snow and nosnow tiles
2022-08-02 06:19:05 +00:00
Crypto City
ffec4648b1 game: speed up texture notile mode
When switching this mode on and then back off, we don't get quite
the original performance, something stays slower in BlitFramebuffer
for unknown reasons, but it'll get "restored" when the game is
restarted next
2022-08-02 06:19:05 +00:00
Crypto City
a25a3cb3a1 cc: a bit faster terrain type calculation 2022-08-02 06:19:05 +00:00
Crypto City
07a56dffc0 cc: remove unused terrain code
the data is overwritten later on
2022-08-02 06:19:05 +00:00
Crypto City
1ad08760b4 cc: do not try to remove single sand tiles when underwater 2022-08-02 06:19:05 +00:00
Crypto City
e003b0dc49 cc: fix removal of single tile cliff/beach 2022-08-02 06:19:05 +00:00
Crypto City
77a3f417ec fix warning in generated script lexer code 2022-08-02 06:19:05 +00:00
Crypto City
a8d967a37c fix script operator precedence 2022-08-02 06:19:05 +00:00
Crypto City
d939b834f2 fix shift/reduce conflicts in script parser 2022-08-02 06:19:05 +00:00
Crypto City
c5ce4a8d51 game: fix add new texture from DXT1 without conversion 2022-08-02 06:19:05 +00:00
Crypto City
c004280dc7 user textures can now tile independently horizontally and vertically 2022-08-02 06:19:05 +00:00
Crypto City
7367b3a7ec game: cache terrain feature in selection where possible 2022-08-02 06:19:05 +00:00
Crypto City
6ac983aeb4 speed up floodfill in terrain feature classification 2022-08-02 06:19:05 +00:00
Crypto City
cceb258105 beaches must now have at least 50% sand (up from 30%) 2022-08-02 06:19:05 +00:00
Crypto City
e5cf2603b5 game: make sure the name place help wraps 2022-08-02 06:19:05 +00:00
Crypto City
a347443601 db_ldmb: fix leak allocating new textures 2022-08-02 06:19:05 +00:00
Crypto City
f4a8938ec1 unit_tests: add unit_tests for collectible fish 2022-08-02 06:19:05 +00:00
Crypto City
701cee900b setup collectible fish times 2022-08-02 06:19:04 +00:00
Crypto City
213d51442f game: do not know city id in maps screen when in view mode 2022-08-02 06:19:04 +00:00
Crypto City
85b4dadae4 game: show mouse position and a go button in the city maps screen 2022-08-02 06:19:04 +00:00
Crypto City
837ad9515e serialization: forbid reading 0 varints from empty data
this could plausibly be useful as a tail compression scheme,
but every other varint loading code treats 0 bytes read as an
error, and it goes with the principle of least surprise.
2022-08-02 06:19:04 +00:00
Crypto City
4552e18249 somewhat better looking terrain 2022-08-02 06:19:04 +00:00
Crypto City
ba3ec0670c game: add an option to clamp between 0 and for manual maps 2022-08-02 06:19:04 +00:00
Crypto City
f3554196f6 game: improved travel to place screen 2022-08-02 06:19:04 +00:00
Crypto City
e1f0f0be19 game: speed up terrain feature classification 2022-08-02 06:19:04 +00:00
Crypto City
7562f3b19d cc: fix a terrain discontinuity, and remove unneeded 64 bit usage 2022-08-02 06:19:04 +00:00
Crypto City
802942561f game: display manual map in white and fix min/max/time display 2022-08-02 06:19:04 +00:00
Crypto City
15509f1b32 game: go to a place on the map when double clicking on a city map 2022-08-02 06:19:04 +00:00
Crypto City
bfd46e0a06 game: guard against the terrain cache directory being removed at runtime 2022-08-02 06:19:04 +00:00
Crypto City
2047ebc400 speed up city maps update 2022-08-02 06:19:04 +00:00
Crypto City
1a3962bee0 game: use fast (and not very good) compression for terrain tiles
it does show on profile
2022-08-02 06:19:04 +00:00
Crypto City
1b3bc72fb7 game: fix terrain cache size setup at load time 2022-08-02 06:19:04 +00:00
Crypto City
48d02ed451 game: allow mouse movement in city maps even without debug mode 2022-08-02 06:19:04 +00:00
Crypto City
5e478cfdff add a "view city maps" screen, piggybacking on the found city screen 2022-08-02 06:19:04 +00:00
Crypto City
eb06bc7754 avoid tiling terrain textures 2022-08-02 06:19:04 +00:00
Crypto City
d97d367d60 do not try to classify terrain features too close to the edge 2022-08-02 06:19:04 +00:00
Crypto City
c811c6dd27 add peninsula and cove terrain features 2022-08-02 06:19:04 +00:00
Crypto City
f271555fae add reef terrain feature 2022-08-02 06:19:04 +00:00
Crypto City
7f9a2868a1 game: add a shoreline effect 2022-08-02 06:19:04 +00:00
Crypto City
9ccd28dd4c game: add market bids to the what can i do screen 2022-08-02 06:19:04 +00:00
Crypto City
1b5c033f6e cc: fix consuming items with gold in scripts 2022-08-02 06:19:04 +00:00
Crypto City
0ba3c27071 db_lmdb: fix typo in error message 2022-08-02 06:19:04 +00:00
Crypto City
3aea47aebc add auctioneer badge - number of auctions created 2022-08-02 06:19:04 +00:00
Crypto City
d9b6eb4de0 add Hephaestos badge - amount of gold smelted 2022-08-02 06:19:04 +00:00
Crypto City
6389b496cb add scribe badge - number of runestones carved 2022-08-02 06:19:04 +00:00
Crypto City
9e62d7283c add additional size restrictions to terrain features
islands must have at least 1024 tiles above sand level
sand banks must have at least 256 tiles above water level
lakes must have at least 10000 tiles below water level
plains must be at least 512x512
peaks must be at least 64x64
2022-08-02 06:19:04 +00:00
Crypto City
09251d7be6 include script owner in start_script_command
so we know when the game should requets a snapshot
2022-08-02 06:19:04 +00:00
Crypto City
578cd3f8dd cc: remove unneeded code and add some checks to DXT1 load/save code 2022-08-02 06:19:04 +00:00
Crypto City
cd4445e0f4 game: use a boost visitor to determine when a snapshot is needed 2022-08-02 06:19:04 +00:00
Crypto City
4ed25cfd19 game: process add_city_specialization and increase_attribute commands 2022-08-02 06:19:04 +00:00
Crypto City
8eb0a091a6 properly account events for town treasuries too 2022-08-02 06:19:03 +00:00
Crypto City
1ded69f8b1 scripts can now create items if set up this way at definition time 2022-08-02 06:19:03 +00:00
Crypto City
3a4d483795 db_lmdb: ensure reserves are removed from account data when empty 2022-08-02 06:19:03 +00:00
Crypto City
f220615b93 prevent editing items in the collectible coins group 2022-08-02 06:19:03 +00:00
Crypto City
1582492535 allow creating more items if that was setup on item definition 2022-08-02 06:19:03 +00:00
Crypto City
24c0d1aeeb game: add missing URHO3D_OBJECT and TBOBJECT_SUBCLASS macros 2022-07-23 15:46:21 +00:00
Crypto City
2a236e888b fix "0" skin settings, they should be 0 (integer) 2022-07-23 15:46:20 +00:00
Crypto City
749d313dca game: allow replacing a script's blobs from the game in debug mode 2022-07-23 15:46:20 +00:00
Crypto City
ffbc1d3ae1 compress script blobs with zstd
- we don't really care if they're slow to compress
- we care about compression for blockchain usage (and max tx size)
2022-07-23 15:46:20 +00:00
Crypto City
a490fa53cc rename far bool, seems an old MSDOS thing is reaching through time 2022-07-23 15:46:20 +00:00
Crypto City
94951e0493 script_analyzer: print blobs at the end 2022-07-23 15:46:20 +00:00
Crypto City
832296d943 allow adding images as blobs in UI definitions inside scripts 2022-07-23 15:46:20 +00:00
Crypto City
4bfe2a87eb game: add a debug hook to print tb errors 2022-07-23 15:46:20 +00:00
Crypto City
e9cfc349ad add a wallet getter for cc_get_blob 2022-07-23 15:46:20 +00:00
Crypto City
cd89727a96 fix @hex not loading the source file in scripts 2022-07-23 15:46:20 +00:00
Crypto City
a8696ae640 game: hide matching widgets in UI for choices which are disabled 2022-07-23 15:46:20 +00:00
Crypto City
da1d710045 game: fix deep walk through widget tree 2022-07-23 15:46:20 +00:00
Crypto City
7eb7189f25 fix a few filenames with wrongly escaped characters 2022-07-23 15:46:20 +00:00
Crypto City
9bf09f8131 game: give an alternative to badge suggestion 2022-07-23 15:46:20 +00:00
Crypto City
cc4469d556 fix typo in name_place event 2022-07-23 15:46:20 +00:00
Crypto City
870c87cbb5 game: fix badge suggestion if current score isn't within base/target 2022-07-23 15:46:20 +00:00
Crypto City
46d22ceb89 allow texture creators to set the tile span 2022-07-23 15:46:20 +00:00
Crypto City
c0db6cf1e1 game: add research and fishing to what can I do screen 2022-07-23 15:46:20 +00:00
Crypto City
7fe74ac4a9 game: reword some text in what can i do screen 2022-07-23 15:46:20 +00:00
Crypto City
6e23b9dc9c add content matched icons to what can I do screen 2022-07-23 15:46:20 +00:00
Crypto City
df4f9c0168 add scarcest resource to what can i do screen 2022-07-23 15:46:20 +00:00
Crypto City
efdf112f30 game: factor out building resource delta accounting 2022-07-23 15:46:20 +00:00
Crypto City
5d0c0f1e33 game: add a "What can I do ?" screen
it gives you ideas based on current game state
2022-07-23 15:46:20 +00:00
Crypto City
acb57cbcbb game: fix accounting replacing a block with another variant of the same block 2022-07-23 15:46:20 +00:00
Crypto City
ba195a47ae game: add a tip about what to do with badges to increase level 2022-07-23 15:46:20 +00:00
Crypto City
714c596706 game: fix enter in "go to location" screen not going to location 2022-07-23 15:46:20 +00:00
Crypto City
94359fdf01 game: cleaner gemstones screen 2022-07-23 15:46:20 +00:00
Crypto City
79dd5c05c7 game: add discoveries to news 2022-07-23 15:46:20 +00:00
Crypto City
74a3dd463d rpc: add a comment for the string corresponding to an encoded text 2022-07-23 15:46:20 +00:00
Crypto City
dc2ffb9903 game: rotate the material selection screen
There are more variants than materials and screens are usually
wider than tall
2022-07-23 15:46:20 +00:00
Crypto City
ca7599f2c0 game: improve material selection screen fluidity 2022-07-23 15:46:20 +00:00
Crypto City
87a4e465c1 game: remember every columns's selection in the material selection screen 2022-07-23 15:46:20 +00:00
Crypto City
73aedc0b47 log in history when finding a rare fish, even if not the first 2022-07-23 15:46:20 +00:00
Crypto City
3556112dab game: use the print_money that cuts off trailing zeroes in game 2022-07-23 15:46:20 +00:00
Crypto City
4df8ef1915 game: fix initial selection in material selection screen 2022-07-23 15:46:19 +00:00
Crypto City
3ad7c87975 game: warn when opening the material selector with no selected flag 2022-07-23 15:46:19 +00:00
Crypto City
669da2d6ab game: add option to hide/show textures by ignored players 2022-07-23 15:46:19 +00:00
Crypto City
4c46b96faf user textures can now be used in game 2022-07-23 15:46:19 +00:00
Crypto City
028f51c31b game: fix materials only working for 256 variants
and pave the way for user textures to be used as materials
2022-07-23 15:46:19 +00:00
Crypto City
2a40996fd0 game: improve default flag names 2022-07-23 15:46:19 +00:00
Crypto City
74d476c3a5 game: allow empty name in building settings screen but prompt about it 2022-07-23 15:46:19 +00:00
Crypto City
5c2c002d17 user created textures and licencing - not yet usable on voxels 2022-07-23 15:46:19 +00:00
Crypto City
7771ef85a7 game: fix image loader from memory not maintaining position 2022-07-23 15:46:19 +00:00
Crypto City
88d2fe61a0 cc: allow game to get the streak badge too, since it can get others 2022-07-23 15:46:19 +00:00
Crypto City
34db7e1842 add more rare fish
marlin, sole, great white shark, coelacanth, grunt, seahorse, toadfish

also tweak rarity
2022-07-23 15:46:19 +00:00
Crypto City
2a51a4c654 give a labour penalty to fishing in another city 2022-07-23 15:46:19 +00:00
Crypto City
4e638f06bb add fish spawning grounds city specialization 2022-07-23 15:46:19 +00:00
Crypto City
aae749b0eb tune down fishing grounds recovery 2022-07-23 15:46:19 +00:00
Crypto City
b62e22b435 add local fish species city specialization 2022-07-23 15:46:19 +00:00
Crypto City
a8a9690eb3 rare fish discoveries 2022-07-23 15:46:19 +00:00
Crypto City
b6d94f9fbf more generic special event overrides for tests 2022-07-23 15:46:19 +00:00
Crypto City
3975fa3555 decrease fish spoil rate 2022-07-23 15:46:19 +00:00
Crypto City
98e27f74f6 game: add preserve-aspect-ratio property to UITBAnimatedImageWidget 2022-07-23 15:46:19 +00:00
Crypto City
05b630e0ee game: fix get_heading 2022-07-23 15:46:19 +00:00
Crypto City
774f8430ce drop runestone price to one quarter gold 2022-07-23 15:46:18 +00:00
Crypto City
b9a3b894cb blockchain: print block/tx hash when failing to revert a command 2022-07-23 15:46:18 +00:00
Crypto City
0ddeaa3992 add RPC and functional tests for edit_player_profile 2022-07-23 15:46:18 +00:00
Crypto City
d7a1580cb2 add RPC to change a script blob (for debugging purposes) 2022-07-23 15:46:18 +00:00
Crypto City
7d47df9d9c db_lmdb: use serialization system for script data 2022-07-23 15:46:18 +00:00
Crypto City
4df64a3236 add "flag N role" operand to scripts 2022-07-23 15:46:18 +00:00
Crypto City
962b32c2be add "flags with role N" operand to scripts 2022-07-23 15:46:18 +00:00
Crypto City
4c486d533a game: display closest flag and distance if too far away to name a place 2022-07-23 15:46:18 +00:00
Crypto City
b1e1b6d2f4 factor island detection out, and consider older islands too
since the island detection performance hit is gone
2022-07-23 15:46:18 +00:00
Crypto City
7a5616cecb game: stop water wake when switching out of avatar camera mode 2022-07-23 15:46:18 +00:00
Crypto City
a3d3f5c121 game: stop water wake when the avatar gets to the shore 2022-07-23 15:46:18 +00:00
Crypto City
e30ff64cf1 game: improve water wake 2022-07-23 15:46:18 +00:00
Crypto City
b3c9abebf4 game: fix occasional missing ground 2022-07-23 15:46:18 +00:00
Crypto City
776b3f8457 adventurer badge: number of terrain features named 2022-07-23 15:46:18 +00:00
Crypto City
e62d9478de add terrain features
such as islands, peaks, etc

will be detected and assigned to places
2022-07-23 15:46:18 +00:00
Crypto City
6d5529d323 cc: reject attempts to name land too close to the edges 2022-07-23 15:46:18 +00:00
Crypto City
5ef8d07ef0 game: free camera gets a speed boost from the two shift keys down 2022-07-23 15:46:18 +00:00
Crypto City
ac3c5a8899 game: add an option to disable automatic backups 2022-07-23 15:46:18 +00:00
Crypto City
85f16c581e game: display whisper distance from eve's position, not the camera's 2022-07-23 15:46:18 +00:00
Crypto City
ec247f73e4 db_lmdb: add missing fields in get_as_{city,account,flag} 2022-07-23 15:46:18 +00:00
Crypto City
32314a1dc4 scripts can now award event badges 2022-07-23 15:46:18 +00:00
Crypto City
ab182447e3 cc: fix local variable revert in start_script command 2022-07-23 15:46:18 +00:00
Crypto City
7a91753ea8 game: fix missing warning icons in event badge screen 2022-07-23 15:46:18 +00:00
Crypto City
51a78e3fcd game: fix Z fighting at a distance in free camera mode 2022-07-23 15:46:18 +00:00
Crypto City
b671b9c79d game: update terrain when rebuilding flags as appropriate 2022-07-23 15:46:18 +00:00
Crypto City
fdc19d3cbc game: update "named" ground mode when a new named place appears 2022-07-23 15:46:18 +00:00
Crypto City
02b5f35172 game: make whisper bubbles slightly visible in daylight 2022-07-23 15:46:18 +00:00
Crypto City
9f6e3abfe8 cc: fix integer overflow in terrain generation 2022-07-23 15:46:18 +00:00
luigi1111
f982163fc9
Merge pull request #8425
fe5d1be build: prepare v0.18.0.0 (selsta)
2022-07-15 11:23:54 -04:00