mondobe / TetraCity

Georgia Tech VGDev game for Fall 2024
0 stars 6 forks source link

Create Religious Building #31

Closed mondobe closed 1 week ago

mondobe commented 1 month ago

As a player, I want a building that increases my chances of balloons spawning using the new AI system. Additionally, as a developer, I want to be able to tweak the balance of this building without having to edit any code (i.e. entirely through @export-ed values).

Design

Implementation

Say the initial weight table is:

Spawn 0 buildings (weight 1)
Spawn 1 building (weight 2)
Spawn 2 buildings (weight 1)

And the offset table is:

Spawn 1 building (weight 0.5)
Spawn 2 buildings (weight 0.5)

So, if there are 2 religious buildings in the grid:

Spawn 0 buildings (weight 1)
Spawn 1 building (weight 2 + 0.5 * 2 = 3)
Spawn 2 buildings (weight 1 + 0.5 * 2 = 2)
mondobe commented 1 month ago

Update after 10/30 meeting:

apartment (weight offset 1)
park (weight offset 0.8)
solar farm (weight offset 4)
...