Opened 8 years ago

Last modified 5 years ago

#3997 new enhancement

Terrain bonuses

Reported by: sanderd17 Owned by:
Priority: If Time Permits Milestone: Backlog
Component: Simulation Keywords:
Cc: Patch:

Description

It would be nice if the simulation could get some info about the terrain, in order to get generic bonuses.

  • farms could produce more food on grass or woodland terrain, and less on city tiles or rocks
  • buildings could be stronger when placed on rocks
  • ...

Attachments (1)

terrainbonus.diff (8.0 KB ) - added by sanderd17 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by sanderd17, 8 years ago

Keywords: simple added

The patch above gives some clues on how it could be done. It gives the possiblity to add classes to terrains, which in turn can be read.

The example of reading the classes is done very hacky in buildrestrictions. It should probably get its own component that allows to define stats and give some UI feedback on placement.

With these clues in the form of a patch, it shouldn't be so hard to implement.

by sanderd17, 8 years ago

Attachment: terrainbonus.diff added

comment:2 by sanderd17, 8 years ago

Keywords: simple removed

Given the difficulties involved on not letting simulation depend on the art side (f.e. to have non-visual replays), removing the simple flag from this ticket again (and the patch itself is probably quite rubbish too)

comment:3 by elexis, 8 years ago

refs #1318

comment:4 by fatherbushido, 7 years ago

(adding a comment to be cc)

comment:5 by elexis, 7 years ago

refs #4432

comment:6 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

Note: See TracTickets for help on using tickets.