Skip to content

Commit

Permalink
Tuning down spontaneous feature generation to once every 2 weeks. The…
Browse files Browse the repository at this point in the history
… world was getting very crowded after 1 year, now with Districts and all.
  • Loading branch information
tukkek committed Sep 21, 2017
1 parent 389e10e commit 90da075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions javelin/controller/generator/feature/FeatureGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ GenerationData register(Class<? extends Actor> class1,
* If <code>false</code> will limit spawning to only a starting
* set of actors. <code>true</code> is supposed to be used while
* the game is progressing to support the full feature set.
* @see GenerationData#starting
*/
public void spawn(float chance, boolean generatingworld) {
if (countplaces() >= World.scenario.startingfeatures
Expand Down
8 changes: 2 additions & 6 deletions javelin/view/screen/WorldScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,12 @@ static public void setVisible(int x, int y) {
*/
public void endturn() {
Squad act = Javelin.act();
// if (act != null && act.work != null) {
// act.build();
// }
long time = act.hourselapsed;
final int day = new Double(Math.ceil(time / 24.0)).intValue();
List<Actor> squads = World.getall(Squad.class);
while (day > WorldScreen.lastday || squads.isEmpty()) {
Season.change(day);
FeatureGenerator.SINGLETON.spawn(1 / 7f, false);
FeatureGenerator.SINGLETON.spawn(1 / 14f, false);
for (Actor p : World.getactors()) {
if (!(p instanceof Incursion)) {
p.turn(time, this);
Expand Down Expand Up @@ -382,8 +379,7 @@ static public ArrayList<String> showstatusinformation() {
vital += " ";
}
hps.add(vital + " Level "
+ Math.round(Math.floor(
CrCalculator.calculatecr(c.source)))
+ Math.round(Math.floor(CrCalculator.calculatecr(c.source)))
+ " " + c.gethumanxp());
}
return hps;
Expand Down

0 comments on commit 90da075

Please sign in to comment.