Thema geschlossen 
Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Städtewachstumsparameter verbessert?
Verfasser Nachricht
Bernhard
Forum-Team
*****

Beiträge: 9.401
Themen: 185
Registriert seit: Jan 2004
#4
 
also wenn ich das auf die schnelle richtig gelesen habe hat sich nichts geändert, bis auf die Tatsache dass die Stadtwerte nicht mehr Bitcodiert sind sondern Word oder so.

hier der Code großes Grinsen
Code:
static void UpdateTownGrowRate(Town *t) { int n; Station *st; byte m; Player *p; // Reset player ratings if they're low FOR_ALL_PLAYERS(p) { if (p->is_active && t->ratings[p->index] <= 200) { t->ratings[p->index] += 5; } } n = 0; FOR_ALL_STATIONS(st) { if (DistanceSquare(st->xy, t->xy) <= t->radius[0]) { if (st->time_since_load <= 20 || st->time_since_unload <= 20) { n++; if (st->owner < MAX_PLAYERS && t->ratings[st->owner] <= 1000-12) t->ratings[st->owner] += 12; } else { if (st->owner < MAX_PLAYERS && t->ratings[st->owner] >= -1000+15) t->ratings[st->owner] -= 15; } } } t->flags12 &= ~1; if (t->fund_buildings_months != 0) { static const byte _grow_count_values[6] = { 60, 60, 60, 50, 40, 30 }; m = _grow_count_values[min(n, 5)]; t->fund_buildings_months--; } else if (n == 0) { m = 160; if (!CHANCE16(1, 12)) return; } else { static const byte _grow_count_values[5] = { 210, 150, 110, 80, 50 }; m = _grow_count_values[min(n, 5) - 1]; } if (_opt.landscape == LT_HILLY) { if (TilePixelHeight(t->xy) >= _opt.snow_line && t->act_food == 0 && t->population > 90) return; } else if (_opt.landscape == LT_DESERT) { if (GetMapExtraBits(t->xy) == 1 && (t->act_food==0 || t->act_water==0) && t->population > 60) return; } t->growth_rate = m / (t->num_houses / 50 + 1); if (m <= t->grow_counter) t->grow_counter = m; t->flags12 |= 1; }


ziemlich mittig. st->time_since_load <= 20 || st->time_since_unload <= 20

also das alte Spiel.

Aber jetzt reicht auch entladen, es muss nicht geladen werden, und es können wesentlich mehr Städte berechnet werden
"Das Böse triumphiert alleine dadurch, daß gute Menschen nichts unternehmen!" Edward Burke, 1729-1797

"Wir leben alle unter dem gleichen Himmel, aber wir haben nicht alle den gleichen Horizont!" Konrad Adenauer, 1876-1967 Zwinkern

08.03.2005, 20:53
Suchen
Thema geschlossen 


Nachrichten in diesem Thema
[Kein Betreff] - von Bernhard - 08.03.2005, 20:23
[Kein Betreff] - von Corvus - 08.03.2005, 20:42
[Kein Betreff] - von Bernhard - 08.03.2005, 20:53
[Kein Betreff] - von Corvus - 08.03.2005, 21:06
[Kein Betreff] - von gooboo - 08.03.2005, 22:08
[Kein Betreff] - von Gast - 08.03.2005, 22:28
[Kein Betreff] - von Bernhard - 09.03.2005, 08:10
[Kein Betreff] - von Gast - 09.03.2005, 12:12
[Kein Betreff] - von Bernhard - 09.03.2005, 12:33
[Kein Betreff] - von pETe! - 09.03.2005, 12:48
[Kein Betreff] - von Bernhard - 09.03.2005, 13:00
[Kein Betreff] - von gooboo - 09.03.2005, 15:25
[Kein Betreff] - von Bernhard - 09.03.2005, 15:33
[Kein Betreff] - von gooboo - 09.03.2005, 16:10
[Kein Betreff] - von pETe! - 09.03.2005, 19:02
[Kein Betreff] - von RK - 09.03.2005, 19:10
[Kein Betreff] - von Bernhard - 09.03.2005, 20:09
[Kein Betreff] - von Corvus - 09.03.2005, 20:34
[Kein Betreff] - von gooboo - 11.03.2005, 23:01
[Kein Betreff] - von pETe! - 12.03.2005, 00:36
[Kein Betreff] - von Bernhard - 12.03.2005, 08:49
[Kein Betreff] - von gooboo - 12.03.2005, 09:27
[Kein Betreff] - von Bernhard - 12.03.2005, 10:02
[Kein Betreff] - von gooboo - 12.03.2005, 10:25
[Kein Betreff] - von pETe! - 12.03.2005, 11:57
[Kein Betreff] - von Bernhard - 12.03.2005, 12:03
[Kein Betreff] - von RK - 12.03.2005, 13:48
[Kein Betreff] - von gooboo - 12.03.2005, 14:26
[Kein Betreff] - von Bernhard - 12.03.2005, 17:48
[Kein Betreff] - von Roman - 12.03.2005, 20:43
[Kein Betreff] - von gooboo - 12.03.2005, 23:06
[Kein Betreff] - von Roman - 13.03.2005, 00:06

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste

Kontakt | Transport Tycoon Main Station | Nach oben | Archiv-Modus | RSS-Synchronisation