jagamemanual:ja_gm_contracts
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
jagamemanual:ja_gm_contracts [2023/03/24 08:13] – nichirinmotor | jagamemanual:ja_gm_contracts [2023/03/31 09:54] (current) – nichirinmotor | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======= 契約ゲームメカニクス ======= | ||
+ | |||
+ | 契約ゲームメカニクス | ||
+ | マニュアルのゲームメカニクスセクションは、ゲームの計算で使用される内部式の詳細を説明します。マニュアルのこのセクションは疑似コードを使用しており、ゲーム内のコードと100%同じとは限りません。 | ||
+ | |||
+ | マニュアルのゲームメカニクスパートは、主に " | ||
+ | |||
+ | **マニュアルのゲームメカニクスセクションは、[[https:// | ||
+ | |||
+ | |||
+ | ====== 変数 ====== | ||
+ | |||
+ | ^ 名称 ^ 説明 ^ ^ 名称 ^ 説明 ^ | ||
+ | | **govPopulation** | 契約している都市や国の人口です。 | | **govCalc** | その国の戦況です。1=通常、0=限定、-1戦争、-2総力戦です。 | | ||
+ | | **year** | これはゲーム年です。 | | **Year_Built** | これはデザインした年です。 | | ||
+ | | **Minimum_Bid_Score** | 選ばれるために必要な最低落札点です。 | | **ContractPeriod** | 契約期間の長さです。 | | ||
+ | | **Wealth_Index** | デザインの裕福度です。[[gamemanual: | ||
+ | | **Lobbying_Budget** | 自社にかけられるロビー活動予算の加重値です | | **Max_Lobbying_Budget** | 使用できるロビー活動予算の最大値です | | ||
+ | | **contractUnitPriceMod** | EngineContracts.xmlファイルで定義されている、このタイプの契約の価格modです。 | ||
+ | | **Engine_Type_EngineSize** | EngineContracts.xmlファイルで定義されているエンジンサイズ変数です。 | ||
+ | | **Engine_Type_FuelMOD** | EngineContracts.xmlファイルで定義されているエンジン燃費変数です。 | ||
+ | | **Engine_Type_torqueMOD** | EngineContracts.xmlファイルで定義されたエンジントルク変数です。 | ||
+ | | **Engine_Type_LengthMOD** | EngineContracts.xmlファイルで定義されているエンジン長さ変数です。 | | **Engine_Type_WeightMOD** | EngineContracts.xmlファイルで定義されたエンジン重量変数です。 | ||
+ | | **Engine_Type_unitPrice** | このModifier変数は、EngineContracts.xmlファイルで定義されているこのタイプのエンジン契約の単価に影響します。 | | **** | | | ||
+ | | **Type_Popularity** | この車種の車両の人気値です。 | | **CarContractType_unitNumbers** | EngineContracts.xmlファイルに定義されている、このタイプの車種契約の台数に対するModifier値です。 | ||
+ | | **CarContractType_HPMOD** | EngineContracts.xmlファイルに定義されている、この車種の契約のための馬力のModifier値です。 | ||
+ | | **cargoType** | この車種の積載量を重視する評価です。 | | **CarContractType_CargoMOD** | EngineContracts.xmlファイルに定義されている、この車種の契約の積載量のModifier値です。 | ||
+ | | **CarContractType_torqueMOD** | EngineContracts.xmlファイルに定義されている、この車種の契約のためのトルクのModifier値です。 | ||
+ | | **CarContractType_TopSpeedMOD** | EngineContracts.xmlファイルに定義されている、この車種の契約のための最高速度のModifier値です。 | ||
+ | | **RacingSeries_Funding_Value** | RacingSeries.xmlファイルに定義されている、レースシリーズのレース資金変数です。 | ||
+ | | **ex_1d002p_year99** | 1.002%%^%%(year-1899) | | **ex_1d005p_year99** | 1.005%%^%%(year-1899) | | ||
+ | | **ex_1d008p_year99** | 1.008%%^%%(year-1899) | | **ex_1d01p_year99** | 1.01%%^%%(year-1899) | | ||
+ | | **ex_1d015p_year99** | 1.015%%^%%(year-1899) | | **ex_1d02p_year99** | 1.02%%^%%(year-1899) | | ||
+ | | **ex_1d025p_year99** | 1.025%%^%%(year-1899) | | **ex_1d03p_year99** | 1.03%%^%%(year-1899) | | ||
+ | | **ex_1d035p_year99** | 1.035%%^%%(year-1899) | | **ex_1d04p_year99** | 1.04%%^%%(year-1899) | | ||
+ | | **ex_1d06p_year99** | 1.06%%^%%(year-1899) | | | | | ||
+ | |||
+ | |||
+ | |||
+ | ====== 車両契約仕様 ====== | ||
+ | |||
+ | ===== エンジン ===== | ||
+ | |||
+ | ==== 排気量 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | //Land/Army | ||
+ | EngineCC = (Random Number Between 0 And 5000) + 10000) * Engine_Type_EngineSize | ||
+ | // | ||
+ | EngineCC = (Random Number Between 0 And 10000) + 25000) * Engine_Type_EngineSize | ||
+ | //Aero | ||
+ | EngineCC = (Random Number Between 0 And 18000 + 12000) * Engine_Type_EngineSize | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== ユニット要求 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if(EngineCC > 20000) | ||
+ | EngineSizeUnitMod = 1000000 / EngineCC | ||
+ | else | ||
+ | EngineSizeUnitMod = (-0.123 * EngineCC) + 2500 | ||
+ | |||
+ | |||
+ | |||
+ | if Land/Army | ||
+ | Units = ((govPopulation/ | ||
+ | | ||
+ | else if Navy | ||
+ | Units = ((govPopulation/ | ||
+ | | ||
+ | else if Military Aero | ||
+ | Units = ((govPopulation/ | ||
+ | | ||
+ | else if Civil Aero | ||
+ | Units = ((govPopulation/ | ||
+ | | ||
+ | else if Civil Maritime | ||
+ | Units = ((govPopulation/ | ||
+ | | ||
+ | |||
+ | Units = Units * Engine_Type_UnitNumbers | ||
+ | |||
+ | |||
+ | UnitsPerMonth = Units / ContractPeriod | ||
+ | |||
+ | if(UnitsPerMonth < 1) | ||
+ | UnitsPerMonth = 1 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 燃費 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | fuelRand = Random Number Between 0 And 3 | ||
+ | |||
+ | if Land/Army | ||
+ | MPG = ((10 - (EngineCC/ | ||
+ | else if Navy | ||
+ | MPG =(( 10 - (EngineCC/ | ||
+ | else if Aero | ||
+ | MPG = ((10 - (EngineCC/ | ||
+ | |||
+ | |||
+ | if(MPG < 4 || MPG > 200) | ||
+ | MPG = -1; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 馬力 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Land/Army | ||
+ | HP = (Random Number Between 0 And (EngineCC/ | ||
+ | else if Navy | ||
+ | HP = (Random Number Between 0 And (EngineCC/ | ||
+ | else if Aero | ||
+ | HP = ((Random Number Between 0 And (EngineCC/ | ||
+ | else if Civil Ships | ||
+ | HP = (Random Number Between 0 And (EngineCC/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== トルク ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Land/Army | ||
+ | torque = (15 + Random Number Between 0 And EngineCC/ | ||
+ | else if Navy | ||
+ | torque = (15 + Random Number Between 0 And EngineCC/ | ||
+ | else if Aero | ||
+ | torque = (20 + Random Number Between 0 And EngineCC/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== トルク ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Land/Army | ||
+ | torque = (15 + Random Number Between 0 And EngineCC/ | ||
+ | else if Navy | ||
+ | torque = (15 + Random Number Between 0 And EngineCC/ | ||
+ | else if Aero | ||
+ | torque = (20 + Random Number Between 0 And EngineCC/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== 幅 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Land/Army | ||
+ | EngineWidth = (EngineCC/ | ||
+ | else if Navy | ||
+ | EngineWidth = (EngineCC/ | ||
+ | else if Aero | ||
+ | EngineWidth = (EngineCC/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== 長さ ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Land/Army | ||
+ | EngineLength = (EngineCC / 300 + 12) * Engine_Type_LengthMOD; | ||
+ | else if Navy | ||
+ | EngineLength = (EngineCC / 150 + 12)*Engine_Type_LengthMOD; | ||
+ | else if Aero | ||
+ | EngineLength = (EngineCC / 200 + 12)*Engine_Type_LengthMOD; | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== 重量 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Land/Army | ||
+ | Weight = (EngineCC / 11.5 + 100) * ex_1d008p_year99 * Engine_Type_WeightMOD; | ||
+ | else if Navy | ||
+ | Weight = (EngineCC / 5.5 + 500) * ex_1d008p_year99 * Engine_Type_WeightMOD; | ||
+ | else if Aero | ||
+ | Weight = (EngineCC / 10.0 + 50) * Engine_Type_WeightMOD; | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== ペナルティ、単価、契約ボーナス ==== | ||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | if Units < 50 | ||
+ | bonusPenality = (ex_1d025p_year99 *30000) * (50.0/ | ||
+ | |||
+ | |||
+ | if Land/Army | ||
+ | Penalty = | ||
+ | else if Military Navy | ||
+ | Penalty = | ||
+ | else if Military Aero | ||
+ | Penalty = | ||
+ | else if Civilian Aero | ||
+ | Penalty = (ex_1d025p_year99 * EngineCC/ | ||
+ | else if Civilian Ships | ||
+ | Penalty = | ||
+ | |||
+ | |||
+ | |||
+ | if(Random Number Between 0 And 1 = 1 ) | ||
+ | { | ||
+ | basePrice = 0 | ||
+ | |||
+ | if Easy Difficulty | ||
+ | basePrice = 175; | ||
+ | else if Normal Difficulty | ||
+ | basePrice = 75 | ||
+ | |||
+ | |||
+ | if Land/Army | ||
+ | { | ||
+ | UnitCosts = ((((105 +basePrice) * ex_1d025p_year99) + | ||
+ | Random Number Between 0 And (130 + basePrice/ | ||
+ | EngineCC/ | ||
+ | | ||
+ | Penalty = ((UnitCosts + EngineCC/ | ||
+ | } | ||
+ | else if Military Navy | ||
+ | { | ||
+ | UnitCosts = ((((305 + basePrice) * ex_1d025p_year99) + | ||
+ | Random Number Between 0 And (200 +basePrice/ | ||
+ | EngineCC/50 + 1+(bonusPenality/ | ||
+ | | ||
+ | Penalty = ((UnitCosts + EngineCC/ | ||
+ | } | ||
+ | else if Military Aero | ||
+ | { | ||
+ | UnitCosts = ((((205 | ||
+ | Random Number Between 0 And (230 +basePrice/ | ||
+ | EngineCC/ | ||
+ | | ||
+ | Penalty = ((UnitCosts+EngineCC/ | ||
+ | } | ||
+ | else if Civilian Aero | ||
+ | { | ||
+ | UnitCosts = ((((130 + basePrice) * ex_1d025p_year99) + | ||
+ | Random Number Between 0 And (155 +basePrice/ | ||
+ | EngineCC/ | ||
+ | | ||
+ | Penalty = ((UnitCosts+EngineCC/ | ||
+ | } | ||
+ | else if Civilian Ships | ||
+ | { | ||
+ | UnitCosts = ((((255 | ||
+ | Random Number Between 0 And (200 + basePrice/ | ||
+ | EngineCC/ | ||
+ | | ||
+ | Penalty = ((UnitCosts + EngineCC/ | ||
+ | } | ||
+ | |||
+ | if(Units > 1000) | ||
+ | UnitCosts = (UnitCosts * 0.75) + (UnitCosts * 0.25 * (1000.0/ | ||
+ | else | ||
+ | UnitCosts = (UnitCosts * 0.875) | ||
+ | |||
+ | UnitCosts = UnitCosts * contractUnitPriceMod; | ||
+ | UnitCosts = UnitCosts * Engine_Type_unitPrice; | ||
+ | |||
+ | |||
+ | SigningBonus = UnitCosts / (Random Number Between 0 And 10) + 10) * Units | ||
+ | |||
+ | SigningBonus = SigningBonus * contractUnitPriceMod | ||
+ | SigningBonus = SigningBonus * Engine_Type_unitPrice | ||
+ | |||
+ | |||
+ | Penalty = Penalty + SigningBonus * Random Number Between 0 and 1.0 + 3.0 | ||
+ | |||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 車両 ===== | ||
+ | |||
+ | |||
+ | ==== ユニット ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Units = (govPopulation * (0.002 + (0.0025 * Absolute Value of(govStatus*3) ))) * Type_Popularity + 1 | ||
+ | |||
+ | Units = Units * CarContractType_unitNumbers | ||
+ | |||
+ | if(warContract) | ||
+ | Units = Units * 5 | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 排気量 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | EngineCC = (Random Number Between 0 And (500) + 1000) * Wealth | ||
+ | </ | ||
+ | |||
+ | ==== 馬力 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if Military Contract | ||
+ | HP = (Random Number Between 0 And (10)+(5 * ex_1d008p_year99)) * wealth * CarContractType_HPMOD | ||
+ | else if Civilian Contract | ||
+ | HP = (Random Number Between 0 And (15)+10) * ex_1d008p_year99 * wealth * CarContractType_HPMOD | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 燃費 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if(Military Contract) | ||
+ | MPG = (14 - (wealth * 2)+ Random Number Between 0 And (4)) * CarContractType_FuelMOD + 3; | ||
+ | else if(Civilian Contract) | ||
+ | MPG = (20 - (wealth *1.75)+ Random Number Between 0 And (4)) * CarContractType_FuelMOD + 3; | ||
+ | |||
+ | if(MPG < 4 OR MPG > 200) | ||
+ | No fuel economy limit | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 積載 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if(Military Contract) | ||
+ | CargoReq = 200 + (Random Number Between 0 And (200) + 200) * (cargoType * 1.2) * CarContractType_CargoMOD | ||
+ | else if(Civilian Contract) | ||
+ | CargoReq = 200 + (Random Number Between 0 And (200) + 150) * (cargoType * 1.2) * CarContractType_CargoMOD | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== トルク ==== | ||
+ | |||
+ | <code cpp> | ||
+ | torque = (25 + (EngineCC/ | ||
+ | </ | ||
+ | |||
+ | ==== 重量 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Weight = (500 + (CargoReq / 50) + Random Number Between 0 And (300)) * ex_1d008p_year99 * CarContractType_WeightMOD | ||
+ | </ | ||
+ | |||
+ | ==== 最高速度 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | if( Year < 2021 ) | ||
+ | topSpeed = ( (20 + ((year-1899)/ | ||
+ | else | ||
+ | topSpeed = (40 + Random Number Between 0 And (80)) * ex_1d005p_year99 * CarContractType_TopSpeedMOD | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 単価、ペナルティ、契約ボーナス ==== | ||
+ | |||
+ | <code cpp> | ||
+ | basePrice = 0 | ||
+ | |||
+ | if Difficulty is Easy | ||
+ | basePrice = 175 | ||
+ | else if Difficulty Normal | ||
+ | basePrice = 75 | ||
+ | |||
+ | |||
+ | if(Military Contract) | ||
+ | { | ||
+ | UnitCosts = (((350 + basePrice) * ex_1d02p_year99) + | ||
+ | Random Number Between 0 And ((50 + basePrice/ | ||
+ | ex_1d02p_year99)) * (Wealth * 0.8 + 1) | ||
+ | } | ||
+ | else if(Civilian Contract) | ||
+ | { | ||
+ | UnitCosts = (((250 | ||
+ | Random Number Between 0 And ((100 + basePrice/ | ||
+ | ex_1d02p_year99)) * (Wealth * 0.7 + 1) | ||
+ | } | ||
+ | |||
+ | if(UnitCosts > 1000) | ||
+ | UnitCosts = (UnitCosts * 0.75) + (UnitCosts * 0.25 * (1000.0/ | ||
+ | else | ||
+ | UnitCosts = (UnitCosts * 0.875) | ||
+ | |||
+ | |||
+ | UnitCosts = UnitCosts * contractUnitPriceMod | ||
+ | UnitCosts = UnitCosts * CarContractType_unitPrice | ||
+ | |||
+ | if(UnitCosts < 450) | ||
+ | UnitCosts = 450 | ||
+ | |||
+ | SigningBonus = UnitCosts/ | ||
+ | |||
+ | Penalty = Penalty + SigningBonus * RandomNumber-> | ||
+ | |||
+ | Penalty = Penalty + ((ex_1d02p_year99 * EngineCC/ | ||
+ | |||
+ | SigningBonus = SigningBonus * contractUnitPriceMod | ||
+ | SigningBonus = SigningBonus * CarContractType_unitPrice | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ====== レース契約書の作成 ====== | ||
+ | |||
+ | ===== 車両 ===== | ||
+ | |||
+ | 排気量、燃料、過給機、シリンダー、車種など、レースシリーズの制限を定義します。 | ||
+ | ==== 契約ボーナス、ペナルティ、単価 ==== | ||
+ | |||
+ | |||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | SigningBonus = ((2000*ex_1d03p_year99)+(5000*RacingSeries_Funding_Value*ex_1d06p_year99)) * | ||
+ | | ||
+ | |||
+ | Penalty = SigningBonus * (Random Number Between (0 And 3.0)+2.0) | ||
+ | |||
+ | if Difficulty = Easy | ||
+ | UnitCosts = (3000*ex_1d025p_year99) * (RacingSeries_Funding_Value/ | ||
+ | else if Difficulty = Normal | ||
+ | UnitCosts = (2000*ex_1d025p_year99) * (RacingSeries_Funding_Value/ | ||
+ | else if Difficulty = Hard or Nightmare | ||
+ | UnitCosts = (1000*ex_1d025p_year99) * (RacingSeries_Funding_Value/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== ユニット ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Units = ((RacingSeries_Races) * RacingSeries_Funding_Value) + 10; | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== 最小馬力 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | MinHP = (100+(2*(year-1900))) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 横G ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Lateral_G = 1 + (0.0005 * (year-1900)) | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 最高速度 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Top_Speed = 100 + (2 * (year-1900)) | ||
+ | </ | ||
+ | ===== エンジン ===== | ||
+ | |||
+ | 排気量、燃料、過給機、シリンダータイプは、レースシリーズの制限に従うこと。 | ||
+ | ==== Signing Bonus, Penalties, Unit Costs ==== | ||
+ | |||
+ | <code cpp> | ||
+ | SigningBonus = ((1000*ex_1d03p_year99)+(2500*RacingSeries_Funding_Value*ex_1d06p_year99)) * | ||
+ | (Random Number Between (0 And 1.0)+0.5) | ||
+ | |||
+ | Penalty = SigningBonus * (Random Number Between (0 And 3.0)+2.0) | ||
+ | |||
+ | |||
+ | |||
+ | if Difficulty = Easy | ||
+ | UnitCosts = (3000*ex_1d02p_year99) * (RacingSeries_Funding_Value/ | ||
+ | else if Difficulty = Normal | ||
+ | UnitCosts = (2500*ex_1d02p_year99) * (RacingSeries_Funding_Value/ | ||
+ | else if Difficulty = Hard or Nightmare | ||
+ | UnitCosts = (1500*ex_1d02p_year99) * (RacingSeries_Funding_Value/ | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ==== ユニット ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Units = ((RacingSeries_Races * 3.0) * RacingSeries_Funding_Value) + 5; | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== 最小馬力 ==== | ||
+ | |||
+ | <code cpp> | ||
+ | Min_HP = (100+(2*(year-1900))); | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ====== 落札者選定 ====== | ||
+ | |||
+ | |||
+ | ===== 最高入札価格 ===== | ||
+ | |||
+ | <code cpp> | ||
+ | if Vehicle Contract | ||
+ | maxBid = ((500 * ex_1d03p_year99) + Random Number Between 0 and (250 * ex_1d03p_year99)) * (Wealth_Index * .75) | ||
+ | else if( Engine Contract ) | ||
+ | maxBid = (((550 * ex_1d03p_year99) + Random Number Between 0 And (550 * ex_1d04p_year99)) + ( HP/(20 * ex_1d02p_year99) ) + 1) | ||
+ | else | ||
+ | maxBid = (((550 * ex_1d035p_year99) + RandomNumber Between 0 And (550 * ex_1d04p_year99)) + 1) | ||
+ | |||
+ | |||
+ | } | ||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== 最低落札点数 ===== | ||
+ | |||
+ | <code cpp> | ||
+ | If Only One Bid | ||
+ | Min_Bid_Mod = 1.6 | ||
+ | If Only Two Bids | ||
+ | Min_Bid_Mod = 1.3 | ||
+ | If Only Three Bids | ||
+ | Min_Bid_Mod = 1.1 | ||
+ | If More Than Three Bids | ||
+ | Min_Bid_Mod = 0 | ||
+ | | ||
+ | | ||
+ | Minimum_Bid_Score = Minimum_Bid_Score * Min_Bid_Mod; | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== 車両入札 ===== | ||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | |||
+ | if(Lobbying Effectiveness > 60) | ||
+ | { | ||
+ | lobbyMod = (Lobbying Budget / Max_Lobbying_Budget | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | lobbyMod = 0 | ||
+ | } | ||
+ | |||
+ | |||
+ | if(lobbyMod >= 1.5) | ||
+ | { | ||
+ | lobbyMod = 1.499; | ||
+ | } | ||
+ | |||
+ | |||
+ | if Vehicle Contract | ||
+ | { | ||
+ | | ||
+ | if( (Year - Year Built)> 6) | ||
+ | { | ||
+ | ageMod = 7 / (Year - Year Built); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | ageMod = 1; | ||
+ | } | ||
+ | |||
+ | |||
+ | if Racing Contract | ||
+ | { | ||
+ | BuyerRating = (((Spec_HP - ContractRequirements_HP)*2.5) | ||
+ | ((Spec_Cargo - ContractRequirements_CargoSpace/ | ||
+ | ((Spec_Torque - ContractRequirements_Torque)*2.5) + ((Spec_TopSpeed - ContractRequirements_TopSpeed)*3.5) + (Spec_LateralG - ContractRequirements_LateralG)*3 + | ||
+ | (Rating_Quality*1) + (Rating_Dependability*10))/ | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | BuyerRating = (((Spec_HP - ContractRequirements_HP)/ | ||
+ | ((Spec_Cargo - ContractRequirements_CargoSpace/ | ||
+ | ((Spec_Torque - ContractRequirements_Torque)/ | ||
+ | (Rating_Quality*25) + (Rating_Dependability*30))/ | ||
+ | } | ||
+ | |||
+ | BuyerRating = BuyerRating * ageMod; | ||
+ | |||
+ | |||
+ | Whoever has the highest buyer rating wins the contract. | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== エンジン入札 ===== | ||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | |||
+ | if(Lobbying Effectiveness > 60) | ||
+ | { | ||
+ | lobbyMod = (Lobbying Budget / Max_Lobbying_Budget | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | lobbyMod = 0 | ||
+ | } | ||
+ | |||
+ | |||
+ | if(lobbyMod >= 1.5) | ||
+ | { | ||
+ | lobbyMod = 1.499; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | if( (Year - Year Built) > 6) | ||
+ | { | ||
+ | ageMod = 7 / (Year - Year Built); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | ageMod = 1; | ||
+ | } | ||
+ | |||
+ | |||
+ | if(lobbyMod == 1.5) | ||
+ | { | ||
+ | lobbyMod = 1.499; | ||
+ | } | ||
+ | |||
+ | if Racing Contract | ||
+ | { | ||
+ | BuyerRating = (((HP - ContractRequirements_HP)*2) + ((ContractRequirements_EngineWeight - Weight)/ | ||
+ | (FuelConsumption - ContractRequirements_FuelConsumption) + (Overall_Rating * 5) + (EngineReliability_Rating * 5) + | ||
+ | (Fuel_Rating * 5) + (Power_Rating * 5) ) / | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | BuyerRating = (((HP - ContractRequirements_HP)/ | ||
+ | (FuelConsumption - ContractRequirements_FuelConsumption) + (Overall_Rating * 15) + (EngineReliability_Rating * 15) + | ||
+ | (Fuel_Rating * 10) + (Power_Rating * 10) + (Smoothness_Rating * 10)) / | ||
+ | } | ||
+ | |||
+ | BuyerRating = BuyerRating * ageMod; | ||
+ | | ||
+ | Whoever has the highest buyer rating wins the contract. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== シャーシ入札 ===== | ||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | |||
+ | if(Lobbying Effectiveness > 60) | ||
+ | lobbyMod = (Lobbying Budget / Max_Lobbying_Budget | ||
+ | else | ||
+ | lobbyMod = 0 | ||
+ | |||
+ | |||
+ | if(lobbyMod >= 1.5) | ||
+ | lobbyMod = 1.499; | ||
+ | |||
+ | |||
+ | |||
+ | if( (Year - Year Built) > 6) | ||
+ | { | ||
+ | ageMod = 7 / (Year - Year Built) | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | ageMod = 1 | ||
+ | } | ||
+ | |||
+ | |||
+ | if Racing Contract | ||
+ | { | ||
+ | BuyerRating = (((ChassisMaxEngineLength+ChassisMaxEngineWidth)-ChassisWeightKG) + | ||
+ | Strength_Rating*1.25 + Comfort_Rating + (Performance_Rating * 25) + | ||
+ | Dependability_Rating*2)/ | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | BuyerRating = ((((ChassisMaxEngineLength*2)+(ChassisMaxEngineWidth*2))) + | ||
+ | Strength_Rating + Comfort_Rating*2 + Performance_Rating*2 + | ||
+ | (Dependability_Rating*4)+Overall_Rating*3)// | ||
+ | |||
+ | } | ||
+ | |||
+ | BuyerRating = BuyerRating * ageMod | ||
+ | |||
+ | |||
+ | Whoever has the highest buyer rating wins the contract. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== ギアボックス入札 ===== | ||
+ | |||
+ | <code cpp> | ||
+ | |||
+ | |||
+ | if(Lobbying Effectiveness > 60) | ||
+ | lobbyMod = (Lobbying Budget / Max_Lobbying_Budget | ||
+ | else | ||
+ | lobbyMod = 0 | ||
+ | |||
+ | |||
+ | if(lobbyMod >= 1.5) | ||
+ | lobbyMod = 1.499; | ||
+ | |||
+ | |||
+ | |||
+ | if( (Year - Year Built) > 6) | ||
+ | { | ||
+ | ageMod = 7 / (Year - Year Built) | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | ageMod = 1 | ||
+ | } | ||
+ | |||
+ | |||
+ | if Racing Contract | ||
+ | { | ||
+ | BuyerRating = (((Overall_Rating*1.5+(Comfort_Rating*0.25))-Weight) + | ||
+ | Reliability_Rating*2 + (Performance_Rating*15) + (FuelConsumption_Rating*2) + | ||
+ | Power_Rating*5+(MaxTorqueInput*2.25))/ | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | BuyerRating = (((Overall_Rating*2.5+(Comfort_Rating*2.25))-Weight*2.5) + | ||
+ | Reliability_Rating*1.5 + (Performance_Rating) + (FuelConsumption_Rating*2) + | ||
+ | Power_Rating+(MaxTorqueInput*0.05))/ | ||
+ | |||
+ | } | ||
+ | |||
+ | BuyerRating = BuyerRating * ageMod | ||
+ | |||
+ | Whoever has the highest buyer rating wins the contract. | ||
+ | |||
+ | </ |