Skip to content

Commit

Permalink
[balancing] make sure no silver found on campable sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
nroutasuo committed Aug 28, 2022
1 parent c1b093e commit bd48e98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/game/helpers/PlayerActionResultsHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,19 @@ define([

getRewardCurrency: function (efficiency) {
var campCount = GameGlobals.gameState.numCamps;
var sectorFeatures = this.playerLocationNodes.head.entity.get(SectorFeaturesComponent);

if (campCount < 2)
return 0;

if (efficiency < 0.25)
return 0;

if (sectorFeatures.campable) {
return 0;
}

var findProbability = 0;
var sectorFeatures = this.playerLocationNodes.head.entity.get(SectorFeaturesComponent);
switch (sectorFeatures.sectorType) {
case SectorConstants.SECTOR_TYPE_RESIDENTIAL:
case SectorConstants.SECTOR_TYPE_PUBLIC:
Expand Down

0 comments on commit bd48e98

Please sign in to comment.