Skip to content

Commit

Permalink
Decrease growth bonus from farms. #62
Browse files Browse the repository at this point in the history
Changes the flat 15 bonus to a 1.5 modifier.
  • Loading branch information
ataranlen committed Dec 26, 2016
1 parent a54c112 commit 8c604a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified civcraft/bin/com/avrgaming/civcraft/structure/farm/FarmChunk.class
Binary file not shown.
2 changes: 1 addition & 1 deletion civcraft/data/structures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ structures:
effect: 'THIS'
attribute: 'GROWTH'
biomes: 'PLAINS'
value: '15'
value: '1.5'

- id: ti_pasture
template: pasture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ public void processGrowth(CivAsyncTask task) throws InterruptedException {
if (comp instanceof ActivateOnBiome) {
ActivateOnBiome ab = (ActivateOnBiome)comp;
if (ab.isValidBiome(biomeName)) {
effectiveGrowthRate += ab.getValue();
Double val = ab.getValue();
effectiveGrowthRate *= val;
break;
}
}
}
Expand Down

0 comments on commit 8c604a5

Please sign in to comment.