Ich habe einen neuen Beruf erstelt version ist 4.4r4
Config_Process.hpp
Code
class uranium {
MaterialsReq[] = {{"uranium_waste",1}};
MaterialsGive[] = {{"uranium",1}};
Text = "STR_Process_Uranium";
//ScrollText = "Harvest Uranium";
NoLicenseCost = 2500;
};
npc
Code
this enableSimulation false; this allowDamage false; this addAction[localize"STR_Process_Uranium",life_fnc_processAction,"uranium",0,false,false,"",' life_inv_uraniumWaste > 0 && !life_is_processing && !life_action_inUse']; this addAction[format["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "uranium" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "uranium" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"uranium",0,false,false,"",' !license_civ_uranium && playerSide isEqualTo civilian '];
Config_Lizenses.hpp
Code
class uranium {
variable = "uranium";
displayName = "STR_License_Uranium";
price = 95000;
illegal = true;
side = "civ";
};
Config_vitems.hpp
Code
class uranium_waste {
variable = "uraniumWaste";
displayName = "STR_Item_UraniumW";
weight = 6;
buyPrice = -1;
sellPrice = -1;
illegal = true;
edible = -1;
icon = "icons\Uran.paa";
processedItem = "uranium";
};
class uranium {
variable = "uranium";
displayName = "STR_Item_Uranium";
weight = 4;
buyPrice = -1;
sellPrice = 5000;
illegal = true;
edible = -1;
icon = "icons\Uran.paa";
};
Alles anzeigen
und auch händler
Config_Gather.hpp
stringtable.xml
einsammeln und lizenz kaufen geht aber das verarbeiten zeigt es mir nicht an
im log habe ich keinen fehler gefunden
kann mir vieleicht einer sagen woran es liegen könnte finde einfach keinen fehler