Tabletop Simulator

Tabletop Simulator

Kingdomino (Scripted)
burnoutmax 29 Sep, 2020 @ 11:09pm
Bug in scoring (Bleak King Quest)
Hello,
I think we encountered a bug with Bleak King quest scoring.

The rules:
---
Bleak king: Win 10 extra points for each
5-square property of Wheat, Forest, Lake or
Grassland with no crown on it.
---
2 player game, 7*7 field
---
Also the Farmer rule +5 for each Sand on the border (see screenshot 3).
---

1. The game counted 140 points, however, it is 150 - https://imgur.com/7YvpfE0
Points left to right:
3*2+4*4+14*4+1+2+0+0+0+7*6+2+5(border)*3+10(Bleak King) = 150 (displaying 140 in-game)

2. I removed one tile to check that score is not updated (still 140, meaning that Bleak King is not counted) - https://imgur.com/zubQEHh

3. The other player (the room host) is counted correctly, including the Bleak King bonus - https://imgur.com/bXsAEdW
Points left to right:
1+0+4*2+0+0+5*8+0+10*6+0+6*1+0+1+0+5(border)*3+10(Bleak King)+10(Bleak King)= 151 (correct)

Thanks in advance
< >
Showing 1-3 of 3 comments
Acemond  [developer] 7 Oct, 2020 @ 8:54am 
Wow, such dedication in a bug report, impressive! Well I guess that means back to code. I'll keep you guys updated when this is fixed, shouldn't take long.
Acemond  [developer] 7 Oct, 2020 @ 9:00am 
Ok found the bug, lol. Literally a one letter bug.
I'm releasing a patch in a few minutes.

If you're curious, Lua is an interpreted language and doesn't do variable checking.
I'm comparing the type of the territory with a constant array of types for all that are concerned by this rule. It contained terrain_types.lakes instead of terrain_types.lake...

Good catch, thanks for the report!
burnoutmax 8 Oct, 2020 @ 4:28am 
Thanks, @Acemond !
< >
Showing 1-3 of 3 comments
Per page: 1530 50