DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DetermineAction()

void Barrel_ColorBase::DetermineAction ( PlayerBase player)
inlineprotected

См. определение в файле Barrel_ColorBase.c строка 177

178 {
179 int slot_id;
180 ItemBase ingredient;
181 slot_id = InventorySlots.GetSlotIdFromString("Lime");
182 ingredient = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
183 if ( ingredient && GetQuantity() > 10000 )
184 {
185 TanPelts(ingredient, player);
186 }
187 else
188 {
189 slot_id = InventorySlots.GetSlotIdFromString("Material_Nails");
190 ingredient = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
191 if ( ingredient && GetQuantity() > 10000 )
192 {
193 ColourLeatherClothes(ingredient, player, "Black");
194 }
195 else
196 {
197 slot_id = InventorySlots.GetSlotIdFromString("BirchBark");
198 ingredient = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
199 if ( ingredient && GetQuantity() > 10000 )
200 {
201 ColourLeatherClothes(ingredient, player, "Beige");
202 }
203 else
204 {
205 slot_id = InventorySlots.GetSlotIdFromString("OakBark");
206 ingredient = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
207 if ( ingredient && GetQuantity() > 10000 )
208 {
209 ColourLeatherClothes(ingredient, player, "Brown");
210 }
211 else
212 {
213
214 slot_id = InventorySlots.GetSlotIdFromString("Disinfectant");
215 ingredient = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
216 if ( ingredient && GetQuantity() > 10000 )
217 {
218 BleachClothes(ingredient, player);
219 }
220 else
221 {
222 slot_id = InventorySlots.GetSlotIdFromString("Plant");
223 ingredient = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
224 slot_id = InventorySlots.GetSlotIdFromString("Guts");
225 ItemBase reactant = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
226 if ( ingredient && reactant && GetQuantity() > 5000 )
227 {
228 ProduceFertilizer(ingredient,reactant,player);
229 }
230 else
231 {
232 slot_id = InventorySlots.GetSlotIdFromString("BerryR");
233 ItemBase ingredientR = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
234 slot_id = InventorySlots.GetSlotIdFromString("Plant");
235 ItemBase ingredientG = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
236 slot_id = InventorySlots.GetSlotIdFromString("BerryB");
237 ItemBase ingredientB = ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
238 if ( (ingredientR || ingredientG || ingredientB) && GetQuantity() > 10000)
239 {
240 ColourClothes(ingredientR,ingredientG,ingredientB,player);
241 }
242 }
243 }
244 }
245 }
246 }
247 }
248 Close();
249 }
class GP5GasMask extends MaskBase ItemBase
override float GetQuantity()
Определения ItemBase.c:8154
override void Close()
Определения Barrel_ColorBase.c:106
void ColourLeatherClothes(ItemBase color_source, PlayerBase player, string color)
Определения Barrel_ColorBase.c:303
void BleachClothes(ItemBase bleach, PlayerBase player)
Определения Barrel_ColorBase.c:354
void ProduceFertilizer(ItemBase guts, ItemBase plant, PlayerBase player)
Определения Barrel_ColorBase.c:251
void ColourClothes(ItemBase rci, ItemBase gci, ItemBase bci, PlayerBase player)
Определения Barrel_ColorBase.c:426
void TanPelts(ItemBase lime, PlayerBase player)
Определения Barrel_ColorBase.c:264

Перекрестные ссылки BleachClothes(), Close(), ColourClothes(), ColourLeatherClothes(), GetQuantity(), InventorySlots::GetSlotIdFromString(), ProduceFertilizer() и TanPelts().

Используется в ActionCloseBarrel::OnExecuteServer().