====== 支店ゲームメカニクス ====== マニュアルのゲームメカニクスセクションは、ゲームの計算で使用される内部式の詳細を説明します。マニュアルのこのセクションは疑似コードを使用しており、ゲーム内のコードと100%同じとは限りません。 マニュアルのゲームメカニクスパートは、主に "なぜX、Y、Zをするとこの評価になるのか?"というよくある質問に対するリファレンスとして設計されています。通常、この答えには多くの異なる変数が含まれており、マニュアルのこのセクションではそれを実証しています。 **マニュアルのゲームメカニクスセクションは、[[https://idioms.thefreedictionary.com/seeing+how+the+sausage+gets+made|ソーセージがどのように作られるか]]を示しています。ですから、ゲームを楽しむなら、このマニュアルの部分は避けた方がいいかもしれません。** ===== 変数 ===== 計算式で使用する変数とその説明の表です。 ^ 変数 ^ 説明 ^ ^ 変数 ^ 説明 ^ | **Focus** | 以前のフォーカススライダー、現在は( (販売リソーススライダー×2) + ディーラーのリソーススライダー) ÷ 3 | | **Personal** | 以前のパーソナルスライダー、現在は ( (販売リソーススライダー × 2) + ディーラーのリソーススライダー)÷3 | | **year** | 現在のゲーム年 | | **Build_Year** | 支店が建設または再設計された年。 | | **City_Infrastructure** | 選択した都市のインフラ評価 | | **City_Labor_Skill** | 選択された都市の労働者のスキル。 | | **City_Population** | 選択された都市の人口。 | | **City_PerCapita** | 選択した都市の一人当たりの所得。 | | **Branch_Map_Adjustment** | マップのMapFileForGame.xmlファイルに記載されている支店の調整値です | | **DynamicBranchCosts** | ゲーム開始時のオプション「支店コストの増加」です。 | | **Wear_Level** | 支店の損耗度合いを0〜100の間で設定します。100が最大損耗量です。 | | **Distance_Between** | 支店から工場までの距離(km)です。 | | **Branch_City_Infrastructure_Rate** | 支店の都市のインフラ評価です。 | | **Branch_City_Gas_Rate** | 支店の都市の燃料価格です。 | | **Factory_City_Infrastructure_Rate** | 工場の都市のインフラ評価です。 | | **Factory_City_Gas_Rate** | 工場の都市の燃料価格です。 | | **Global_Gas** | これは、TurnEvents.xmlファイルで定義されている国際燃料価格です。 | | **Dealer_Count** | これは、支店がサービスを提供しているディーラーの数です。 | | **Admin_Skill** | これは、あなたの会社の管理能力です | | **Add_Dealership_Attempts** | この数値は、この拠点でディーラーへの補助を行うたびに0.5ずつ増加します。 | | **Max_Supported_Dealers** | この支店がサービスを提供できるディーラーの最大数です。 | | **ex_1d01p_year99** | 1.01%%^%%(year-1899) | | **ex_1d012p_year99** | 1.012%%^%%(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_1d05p_year99** | 1.05%%^%%(year-1899) | ==== スライダー ==== ^ 変数 ^ 説明 ^ ^ 変数 ^ 説明 ^ | **Slider_Dealership_Resources** | ディーラーのリソーススライダー | | **Slider_Sales_Resources** | 販売リソーススライダー | ===== 支店の評価 ===== ==== ディーラー拡大レート ==== Dealer_Growth = (Slider_Dealership_Resources*30000 + (City_Infrastructure*City_Labor_Skill))/40000 ==== 販売効率 ==== Sales_Efficiency = (200*Slider_Sales_Resources+100*Personal+City_Labor_Skill)/400 ==== ディーラーの最大数 ==== Maximum_Dealers = ((City_Infrastructure/3.5+22)* (City_Population/(1000000*1.004^year-1899*Branch_Map_Adjustment)))+10 if(Branch_Map_Adjustment > 3) Maximum_Dealers = Maximum_Dealers * 3 else Maximum_Dealers = Maximum_Dealers * Branch_Map_Adjustment ==== 建設費 ==== if(Year < 2021) { Costs = ((15000*ex_1d05p_year99 * 50) + (City_PerCapita*50*(year-1899)))/11; } else { Costs = ((15000*ex_1d05p_year99*50) + (City_PerCapita*50*121))/11; } if(DynamicBranchCosts) { Costs = Costs * (City_Population / (1000000 * ex_1d012p_year99) + 0.9) } Costs = Costs * Branch_Map_Adjustment ==== 月次費用 ==== Monthly_Costs = ((3000*(ex_1d04p_year99)* Dealer_Growth+ 2500*(ex_1d03p_year99)*Sales_Efficiency+10000* (ex_1d035p_year99)*Personal)) + (5000*(ex_1d025p_year99) * ((100-City_Infrastructure)/100)) if(DynamicBranchCosts) { Monthly_Costs = Monthly_Costs * (City_Population / (5000000*ex_1d01p_year99) + 0.9) } Monthly_Costs = Monthly_Costs * Branch_Map_Adjustment ==== 従業員数 ==== if(Year < 2021) { Max_Employees = 5 + ((year-1899)/1.2) + (3*(year-1899)*Slider_Dealership_Resources)+ (2*(year-1899)*Slider_Sales_Resources) } else { Max_Employees = 5 + (100.833)+ (3*(year-1899)*Slider_Dealership_Resources)+ (2*121*Slider_Sales_Resources) } Max_Employees = Max_Employees * Branch_Map_Adjustment Max_Employees = Max_Employees + Monthly_Costs/5000 ===== 修繕 ===== ==== 費用 ==== Recondition_Costs = Wear_Level * (5 * (year - (Build_Year-1)) +100 ) ===== 出荷 ===== ==== 費用 ==== costs = (Distance_Between^1.03/((7.0+(Branch_City_Infrastructure_Rate/85.0)+ (Factory_City_Infrastructure_Rate/85.0)) * ex_1d004p_year99)) * ((0.7 / (7.0+(Branch_City_Infrastructure_Rate/85.0)+ (Factory_City_Infrastructure_Rate/85.0))) +1) * Global_Gas * ((Branch_City_Gas_Rate+Factory_City_Gas_Rate)/2.0) ===== ディーラー ===== ==== 新しいディーラー ==== Dealer_Percent = Dealer_Count/Max_Supported_Dealers if((0.1+Slider_Dealership_Resources) > Random_Number Between 0 and (1.2+Dealer_Percent) ) Dealer_Count = Dealer_Count + 1 + (5 * Slider_Dealership_Resources) else if(Dealer_Percent > 0.5 AND (0.1+Dealer_Percent) > Random_Number Between 0 and 5 ) Dealer_Count = Dealer_Count - (1 + (3*Dealer_Percent)) if(Slider_Dealership_Resources * 100 > Random_Number Between 0 and 200) { Max_Supported_Dealers = Random_Number Between 0 and 4 + 1 } ==== ディーラーへの補助金 ==== Add_New_Dealerships = ((Admin_Skill/4.0)/(Add_Dealership_Attempts + 1)) + 1 Costs = 5000 * ex_1d035p_year99 * Add_New_Dealerships * (Add_Dealership_Attempts+1);