japanesemanual:ja_gm_fuelcosts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| japanesemanual:ja_gm_fuelcosts [2023/06/15 07:42] – nichirinmotor | japanesemanual:ja_gm_fuelcosts [2023/06/16 05:57] (current) – nichirinmotor | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======= 自動車/ | ||
| + | |||
| + | マニュアルのゲームメカニクスセクションは、ゲームの計算で使用される内部式の詳細を説明します。マニュアルのこのセクションは疑似コードを使用しており、ゲーム内のコードと100%同じとは限りません。 | ||
| + | |||
| + | マニュアルのゲームメカニクスパートは、主に " | ||
| + | |||
| + | **マニュアルのゲームメカニクスセクションは、[[https:// | ||
| + | |||
| + | |||
| + | ===== 変数 ===== | ||
| + | |||
| + | |||
| + | ^ 名称 ^ 名称 ^ ^ 名称 ^ 名称 ^ | ||
| + | | **GasRate** | 燃料レートは、turn events.xmlファイルを介して燃料価格を調整する変数です。 | | **Vehicle Type Sales in Region** | city.xmlファイルによって定義された地域における、その車種の総販売台数です。デフォルトのマップでは、これらの地域は大陸です。 | | ||
| + | | **Total Region Sales** | city.xmlファイルによって定義された地域における、すべての車種の総販売台数です。デフォルトのマップでは、これらの地域は大陸です。 | | **Current Popularity** | その地域におけるこの車種の現在の人気です。 | | ||
| + | | **VehiclesOfFuelSoldLastYear** | この燃料タイプを使用して昨年販売された車の数です。 | | **TotalVehicleSales** | すべての燃料タイプの昨年の販売台数の合計です。 | | ||
| + | |||
| + | |||
| + | ===== 国際燃料価格 ===== | ||
| + | |||
| + | 都市の燃料価格と併用して、燃費と輸送費の重要性を計算する。 | ||
| + | |||
| + | <code cpp> | ||
| + | gasPrice = 0.0165 * (Year-1900)+ .15; | ||
| + | gasPrice = gasPrice * GasRate; | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== 車両人気度 ===== | ||
| + | |||
| + | <code cpp> | ||
| + | |||
| + | Vehicle Type Regional Share = Vehicle Type Sales in Region / Total Region Sales | ||
| + | |||
| + | |||
| + | if(Car Type Sale Share < Current Popularity * 0.85) | ||
| + | Car Type Regional Popularity = Car Type Regional Popularity * 0.998; | ||
| + | else if(Car Type Sale Share > Current Popularity * 1.15) | ||
| + | Car Type Regional Popularity = Car Type Regional Popularity * 1.002; | ||
| + | </ | ||
| + | |||
| + | ===== 燃料の人気 ===== | ||
| + | |||
| + | <code cpp> | ||
| + | fuelShare = VehiclesOfFuelSoldLastYear / TotalVehicleSales | ||
| + | |||
| + | |||
| + | if(fuelShare > 0.35 AND FuelPopularity < 0.35 AND FuelPopularity+0.05 < fuelShare ) | ||
| + | { | ||
| + | FuelPopularity = FuelPopularity + 0.05 | ||
| + | } | ||
| + | |||
| + | if(FuelPopularity+0.005 < fuelShare ) | ||
| + | { | ||
| + | FuelPopularity = FuelPopularity + 0.005 | ||
| + | } | ||
| + | else if(FuelPopularity-0.005 > fuelShare ) | ||
| + | { | ||
| + | FuelPopularity = FuelPopularity - 0.005 | ||
| + | } | ||
| + | </ | ||