63 override bool CanDo(
ItemBase ingredients[], PlayerBase player)
65 PluginRepairing module_repairing;
66 Class.CastTo(module_repairing,
GetPlugin(PluginRepairing));
68 Class.CastTo(ingredient1, ingredients[0]);
70 Class.CastTo(ingredient2, ingredients[1]);
74 override void Do(
ItemBase ingredients[], PlayerBase player,array<ItemBase> results,
float specialty_weight)
76 PluginRepairing module_repairing;
77 Class.CastTo(module_repairing,
GetPlugin(PluginRepairing));
79 Class.CastTo(playerPB, player);
81 Class.CastTo(ingredient1, ingredients[0]);
83 Class.CastTo(ingredient2, ingredients[1]);
84 module_repairing.Repair(playerPB, ingredient1,ingredient2,
m_Specialty);
override bool CanBeRepairedByCrafting()
DayZPlayerConstants
defined in C++
class GP5GasMask extends MaskBase ItemBase
PluginBase GetPlugin(typename plugin_type)
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
int m_ResultToInventory[MAXIMUM_RESULTS]
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
int m_ResultInheritsColor[MAXIMUM_RESULTS]
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_ResultSetQuantity[MAXIMUM_RESULTS]
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=BASE_CRAFT_ANIMATION_ID, bool showItem=false)
float m_ResultSetHealth[MAXIMUM_RESULTS]
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
bool m_ResultUseSoftSkills[MAXIMUM_RESULTS]
bool CanDo(PlayerBase player, TStringVectorMap surfaceTypes)
void Do(PlayerBase player)