178 {
179 int slot_id;
181 slot_id = InventorySlots.GetSlotIdFromString("Lime");
182 ingredient =
ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
184 {
186 }
187 else
188 {
189 slot_id = InventorySlots.GetSlotIdFromString("Material_Nails");
190 ingredient =
ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
192 {
194 }
195 else
196 {
197 slot_id = InventorySlots.GetSlotIdFromString("BirchBark");
198 ingredient =
ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
200 {
202 }
203 else
204 {
205 slot_id = InventorySlots.GetSlotIdFromString("OakBark");
206 ingredient =
ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
208 {
210 }
211 else
212 {
213
214 slot_id = InventorySlots.GetSlotIdFromString("Disinfectant");
215 ingredient =
ItemBase.Cast( GetInventory().FindAttachment(slot_id) );
217 {
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 {
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 {
241 }
242 }
243 }
244 }
245 }
246 }
247 }
249 }
class GP5GasMask extends MaskBase ItemBase
override float GetQuantity()
void ColourLeatherClothes(ItemBase color_source, PlayerBase player, string color)
void BleachClothes(ItemBase bleach, PlayerBase player)
void ProduceFertilizer(ItemBase guts, ItemBase plant, PlayerBase player)
void ColourClothes(ItemBase rci, ItemBase gci, ItemBase bci, PlayerBase player)
void TanPelts(ItemBase lime, PlayerBase player)