# for city tasks, every file represents a single city type

TASKS_TYPE: DARK_CATHEDRAL

#defend_citizens
#{
#    type: DefendCitizens
#    task_class: PROTECT_CITY
#    #condition: stone_spear_condition
#}

defend_items
{
    type: DefendItems
    task_class: PROTECT_CITY
    #condition: stone_spear_condition
}

manage_furniture
{
    type: ManageRoomFurniture
    task_class: CITY_UPKEEP_TASK
}

manage_chests
{
    type: ManageChests
    task_class: CITY_UPKEEP_TASK
    item_list: dweller_room_container_list
}

plant_food_seeds
{
    type: PlantSeeds
    task_class: FARMING_TASK_II
    item_list: human_food_seed_list
    tile_type: plowed_dirt

    condition: diet_condition
}

plant_magic_food
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: magic_planting_tiles
    room_type: farm_room
    ability: arcane_harvest

    condition: diet_condition
}

diet_condition
{
    type: StockLessThanList
    item_list: human_diet
    amount: 500
}

plant_life_flower
{
    type: PlantSeeds
    task_class: FARMING_TASK_II
    item_list: life_flower_seed_list
    tile_type: plowed_dirt

    condition: life_flower_condition
}

life_flower_condition
{
    type: StockLessThanItem
    item: life_flower
    amount: 250
}


hunt_leather
{
    type: HuntCreatures
    task_class: HUNTING_TASK
    creature_list: dweller_leather_hunt_list
    ability: skin_corpses
    condition: no_leather_stock_condition
}

no_leather_stock_condition
{
    type: StockLessThanItem
    item: leather
    amount: 50
}

leather_stock_condition
{
    type: StockMoreThanItem
    item: leather
    amount: 40
}

hunt_snake_skin
{
    type: HuntCreatures
    task_class: HUNTING_TASK
    creature_list: dweller_snake_skin_hunt_list
    ability: skin_corpses
    condition: snake_skin_stock_condition
    condition: stone_spear_condition
}

snake_skin_stock_condition
{
    type: StockLessThanItem
    item: snake_skin
    amount: 20
}

hunt_wool
{
    type: HuntCreatures
    task_class: HUNTING_TASK
    creature_list: dweller_wool_hunt_list
    ability: cut_corpses
    condition: wool_stock_condition
    #condition: stone_spear_condition
}

wool_stock_condition
{
    type: StockLessThanItem
    item: wool
    amount: 50
}

stone_spear_condition
{
    type: StockMoreThanItem
    item: stone_spear
    amount: 2
}

hunt_bones
{
    type: HuntCreatures
    task_class: HUNTING_TASK
    creature_list: dweller_bone_hunt_list
    ability: butcher_corpses
    condition: bones_stock_condition
    condition: bow_stock_condition
    condition: shield_stock_condition
}

bones_stock_condition
{
    type: StockLessThanItem
    item: skull
    item: femour
    amount: 3
}

bow_stock_condition
{
    type: StockMoreThanItem
    item: short_bow
    amount: 1
}

shield_stock_condition
{
    type: StockMoreThanItem
    item: wooden_shield
    amount: 1
}

leather_bag_stock_condition
{
    type: StockMoreThanItem
    item: leather_bag
    amount: 2
}

hunt_spiders_for_silk
{
    type: HuntCreatures
    task_class: HUNTING_TASK
    creature_list: dweller_spider_hunt_list
    ability: cut_corpses
    condition: spider_silk_stock_condition
    condition: bow_stock_condition
    condition: shield_stock_condition
}

hunt_spiders_for_carapace
{
    type: HuntCreatures
    task_class: HUNTING_TASK
    creature_list: dweller_spider_hunt_list
    ability: skin_corpses
    condition: spider_carapace_stock_condition
    condition: bow_stock_condition
    condition: shield_stock_condition
}

harvest_outside_city
{
    type: UseTiles
    task_class: FARMING_TASK_I
    tile_list: harvest_tiles
    condition: harvest_outside_city_condition
}

harvest_outside_city_condition
{
    type: StockLessThanItem
    item: the_arcane_harvest
    amount: 1
}

harvest_in_city
{
    type: UseTiles
    task_class: FARMING_TASK_I
    room_type: farm_room
    tile_list: harvest_tiles
    top_tile_list: air_tiles
}

forage
{
    type: UseTiles
    task_class: WOODCUTTING_TASK
    tile_list: forage_tiles
}

clear_farm_grass
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: grass_plant_tile_list
    room_type: FARM_PLOT
    ability: cut_grass
}

plow_farm_tiles
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: plowable_tiles
    room_type: FARM_PLOT
    ability: stone_hoe_transform
}

clear_road_tiles
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: grass_tiles
    room_type: ROAD_PLOT
    ability: stone_hoe_transform
}

stock_food
{
    type: StockList
    task_class: FARMING_TASK_I
    item_list: human_diet
}

stock_forage
{
    type: StockList
    task_class: WOODCUTTING_TASK
    item_list: forage_list
}

stock_carrot_seeds
{
    type: StockItem
    task_class: FARMING_TASK_II
    item: carrot_seed
    condition: stock_carrot_seeds_condition
}

stock_carrot_seeds_condition
{
    type: StockLessThanItem
    item: carrot_seed
    amount: 100
}

stock_life_flower_seeds
{
    type: StockItem
    task_class: FARMING_TASK_II
    item: life_flower_seed
    condition: stock_life_flower_seeds_condition
}

stock_life_flower_seeds_condition
{
    type: StockLessThanItem
    item: life_flower_seed
    amount: 100
}

stock_containers
{
    type: StockList
    task_class: CARRY_TASK
    item_list: dweller_container_list
}

stock_clothes
{
    type: StockList
    task_class: CARRY_TASK
    item_list: human_clothes_list
}

stock_accesories
{
    type: StockList
    task_class: CARRY_TASK
    item_list: human_accessory_list
}

stock_weapons
{
    type: StockList
    task_class: CARRY_TASK
    item_list: human_weapons_list
}

stock_tools
{
    type: StockList
    task_class: CARRY_TASK
    item_list: human_tool_list
}

stock_furniture
{
    type: StockList
    task_class: CARRY_TASK
    item_list: furniture_list
    furniture: true
}

stock_city_resources
{
    type: StockList
    task_class: CARRY_TASK
    item_list: city_resource_list
}

stock_woodcutting_loot
{
    type: StockList
    task_class: WOODCUTTING_TASK
    item_list: woodcutting_loot_list
}

stock_mining_loot
{
    type: StockList
    task_class: MINING_TASK
    item_list: mining_loot_list
}

stock_hunting_loot
{
    type: StockList
    task_class: HUNTING_TASK
    item_list: hunting_loot_list
}

stock_snake_corpse
{
    type: StockList
    task_class: GATHER_MAGICAL_INGREDIENTS_TASK
    item_list: snake_corpse_list
    condition: snake_staff_condition
    condition: snake_staff_tin_nail_condition
}

snake_staff_condition
{
    type: StockLessThanItem
    item: snake_staff
    amount: 1
}

snake_staff_tin_nail_condition
{
    type: StockMoreThanItem
    item: tin_nail
    amount: 6
}

extract_life_flower
{
    type: UseTiles
    task_class: WOODCUTTING_TASK
    tile_list: life_flower_tile_list
    condition: life_flower_stock_condition
}

life_flower_stock_condition
{
    type: StockLessThanItem
    item: life_flower
    amount: 250
}

extract_wood_no_tool
{
    type: UseTiles
    task_class: WOODCUTTING_TASK
    tile_list: no_tool_tree_list
    condition: wood_stock_condition
}

extract_wood_with_tool
{
    type: UseTiles
    task_class: WOODCUTTING_TASK
    tile_list: tree_tile_list
    ability: cut_wood
    condition: wood_stock_condition
}

wood_stock_condition
{
    type: StockLessThanItem
    item: wood_log
    amount: 20
}

extract_stone_no_tool
{
    type: UseTiles
    task_class: MINING_TASK
    tile_list: no_tool_stone_tile_list
    condition: stone_stock_condition
}

extract_stone_with_tool
{
    type: UseTiles
    task_class: MINING_TASK
    tile_list: stone_tool_stone_tile_list
    ability: break_stone
    condition: stone_stock_condition
}

stone_stock_condition
{
    type: StockLessThanItem
    item: loose_stone
    amount: 20
}

extract_copper_with_tool
{
    type: UseTiles
    task_class: MINING_TASK
    tile_list: stone_tool_copper_ore_tile_list
    ability: break_stone
    condition: copper_ore_stock_condition
}

copper_ore_stock_condition
{
    type: StockLessThanItem
    item: copper_ore
    amount: 20
}

extract_tin_with_tool
{
    type: UseTiles
    task_class: MINING_TASK
    tile_list: stone_tool_tin_ore_tile_list
    ability: break_stone
    condition: tin_ore_stock_condition
}

tin_ore_stock_condition
{
    type: StockLessThanItem
    item: tin_ore
    amount: 20
}

extract_wool
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: wool_corpse_list
    ability: cut_corpses
    condition: wool_stock_condition
}

wool_stock_condition
{
    type: StockLessThanItem
    item: wool
    amount: 50
}

extract_meat
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: meat_corpse_list
    ability: butcher_corpses
    condition: meat_stock_condition
}

meat_stock_condition
{
    type: StockLessThanItem
    item: meat
    amount: 50
}

extract_bones
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: bones_corpse_list
    ability: butcher_corpses
    condition: bones_stock_condition
}

extract_demonic_bones
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: demonic_bones_corpse_list
    ability: butcher_corpses
    condition: demonic_bones_stock_condition
}

demonic_bones_stock_condition
{
    type: StockLessThanItem
    item: demonic_bone
    amount: 10
}

extract_rotting_guts
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: rotting_guts_corpse_list
    ability: butcher_corpses
    condition: rotting_guts_stock_condition
}

rotting_guts_stock_condition
{
    type: StockLessThanItem
    item: rotting_guts
    amount: 20
}

extract_leather
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: skinnable_list
    ability: skin_corpses
    condition: no_leather_stock_condition
}

extract_spider_carapace
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: spider_corpse_list
    ability: skin_corpses
    condition: spider_carapace_stock_condition
}

spider_carapace_stock_condition
{
    type: StockLessThanItem
    item: spider_carapace
    amount: 20
}

extract_spider_silk
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: spider_corpse_list
    ability: cut_corpses
    condition: spider_silk_stock_condition
}

spider_silk_stock_condition
{
    type: StockLessThanItem
    item: silk
    amount: 30
}

extract_dragon_scale
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: dragon_corpse_list
    ability: skin_corpses
    condition: dragon_scale_stock_condition
}

dragon_scale_stock_condition
{
    type: StockLessThanItem
    item: dragon_scale
    amount: 200
}

extract_fine_wool
{
    type: ExtractFromItems
    task_class: HUNTING_TASK
    item_list: fine_wool_corpse_list
    ability: cut_corpses
    condition: fine_wool_stock_condition
}

fine_wool_stock_condition
{
    type: StockLessThanItem
    item: fine_wool
    amount: 200
}


craft_leather_bag
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: leather_bag
    condition: craft_leather_bag_condition
}

craft_leather_bag_condition
{
    type: StockLessThanList
    item_list: dweller_container_list
    amount: 10
}

craft_crate
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: crate
    condition: craft_crate_condition
}

craft_crate_condition
{
    type: StockLessThanList
    item_list: dweller_room_container_list
    amount: 3
}

craft_short_bow
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: short_bow
    condition: craft_short_bow_condition
    condition: bag_condition
}

bag_condition
{
    type: StockMoreThanList
    item_list: dweller_container_list
    amount: 2
}

craft_short_bow_condition
{
    type: StockLessThanItem
    item: short_bow
    amount: 2
}

craft_copper_pickaxe
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: copper_pickaxe
    condition: craft_copper_pickaxe_condition
}

craft_copper_pickaxe_condition
{
    type: StockLessThanItem
    item: copper_pickaxe
    amount: 2
}

craft_bronze_pickaxe
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_pickaxe
    condition: craft_bronze_pickaxe_condition
}

craft_bronze_pickaxe_condition
{
    type: StockLessThanItem
    item: bronze_pickaxe
    amount: 2
}

craft_stone_hoe
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: stone_hoe
    condition: craft_stone_hoe_condition
}

craft_stone_hoe_condition
{
    type: StockLessThanItem
    item: stone_hoe
    amount: 2
}

craft_sharp_stone
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: sharp_stone
    condition: craft_sharp_stone_condition
}

craft_sharp_stone_condition
{
    type: StockLessThanItem
    item: sharp_stone
    amount: 2
}

craft_stone_spear
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: stone_spear
    condition: craft_stone_spear_condition
}

craft_stone_spear_condition
{
    type: StockLessThanItem
    item: stone_spear
    amount: 2
}

craft_leather_armor
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: leather_armor
    condition: craft_leather_armor_condition
    condition: leather_bag_stock_condition
}

craft_leather_armor_condition
{
    type: StockLessThanItem
    item: leather_armor
    amount: 2
}

craft_leather_boots
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: leather_boots
    condition: craft_leather_boots_condition
    condition: leather_bag_stock_condition
}

craft_leather_boots_condition
{
    type: StockLessThanItem
    item: leather_boots
    amount: 2
}

craft_leather_helmet
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: leather_helmet
    condition: craft_leather_helmet_condition
    condition: leather_bag_stock_condition
}

craft_leather_helmet_condition
{
    type: StockLessThanItem
    item: leather_helmet
    amount: 2
}

craft_leather_pants
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: leather_pants
    condition: craft_leather_pants_condition
    condition: leather_bag_stock_condition
}

craft_leather_pants_condition
{
    type: StockLessThanItem
    item: leather_pants
    amount: 2
}

craft_straw_hat
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: straw_hat
    condition: craft_straw_hat_condition
}

craft_straw_hat_condition
{
    type: StockLessThanItem
    item: straw_hat
    amount: 2
}


craft_wool_shirt
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_shirt
    condition: craft_wool_shirt_condition
}

craft_wool_shirt_condition
{
    type: StockLessThanItem
    item: wool_shirt
    amount: 2
}

craft_wool_pants
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_pants
    condition: craft_wool_pants_condition
}

craft_wool_pants_condition
{
    type: StockLessThanItem
    item: wool_pants
    amount: 2
}

craft_wool_hat
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_hat
    condition: craft_wool_hat_condition
}

craft_wool_hat_condition
{
    type: StockLessThanItem
    item: wool_hat
    amount: 2
}

craft_wool_robe
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_robe
    condition: craft_wool_robe_condition
}

craft_wool_robe_condition
{
    type: StockLessThanItem
    item: wool_robe
    amount: 2
}

craft_wool_skirt
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_skirt
    condition: craft_wool_skirt_condition
}

craft_wool_skirt_condition
{
    type: StockLessThanItem
    item: wool_skirt
    amount: 2
}

craft_wool_socks
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_socks
    condition: craft_wool_socks_condition
}

craft_wool_socks_condition
{
    type: StockLessThanItem
    item: wool_socks
    amount: 2
}

craft_wool_scarf
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wool_scarf
    condition: craft_wool_scarf_condition
}

craft_wool_scarf_condition
{
    type: StockLessThanItem
    item: wool_scarf
    amount: 2
}

craft_wool_rope
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: rope
    condition: craft_wool_rope_condition
}

craft_wool_rope_condition
{
    type: StockLessThanItem
    item: rope
    amount: 2
}

craft_broom
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: broom
    condition: craft_broom_condition
}

craft_broom_condition
{
    type: StockLessThanItem
    item: broom
    amount: 2
}

craft_silk_hat
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: silk_hat
    condition: craft_silk_hat_condition
}

craft_silk_hat_condition
{
    type: StockLessThanItem
    item: silk_hat
    amount: 1
}

craft_silk_robe
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: silk_robe
    condition: craft_wool_robe_condition
}

craft_silk_robe_condition
{
    type: StockLessThanItem
    item: silk_robe
    amount: 1
}

craft_silk_skirt
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: silk_skirt
    condition: craft_silk_skirt_condition
}

craft_silk_skirt_condition
{
    type: StockLessThanItem
    item: silk_skirt
    amount: 1
}

craft_copper_bar
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: copper_bar
    condition: craft_copper_bar_condition
}

craft_copper_bar_condition
{
    type: StockLessThanItem
    item: copper_bar
    amount: 20
}

craft_tin_bar
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: tin_bar
    condition: craft_tin_bar_condition
}

craft_tin_bar_condition
{
    type: StockLessThanItem
    item: tin_bar
    amount: 20
}

craft_bronze_bar
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_bar
    condition: craft_bronze_bar_condition
}

craft_bronze_bar_condition
{
    type: StockLessThanItem
    item: bronze_bar
    amount: 20
}

craft_copper_scissors
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: copper_scissors
    condition: craft_copper_scissors_condition
}

craft_copper_scissors_condition
{
    type: StockLessThanItem
    item: copper_scissors
    amount: 1
}

craft_meat_cleaver
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: meat_cleaver
    condition: craft_meat_cleaver_condition
}

craft_meat_cleaver_condition
{
    type: StockLessThanItem
    item: meat_cleaver
    amount: 1
}

craft_snakerang
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: snakerang
    condition: craft_snakerang_condition
}

craft_snakerang_condition
{
    type: StockLessThanItem
    item: snakerang
    amount: 2
}

craft_spider_boots
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: spider_boots
    condition: craft_spider_boots_condition
}

craft_spider_boots_condition
{
    type: StockLessThanItem
    item: spider_boots
    amount: 1
}

craft_spider_pants
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: spider_pants
    condition: craft_spider_pants_condition
}

craft_spider_pants_condition
{
    type: StockLessThanItem
    item: spider_pants
    amount: 1
}

craft_copper_machete
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: copper_machete
    condition: craft_copper_machete_condition
}

craft_copper_machete_condition
{
    type: StockLessThanItem
    item: copper_machete
    amount: 2
}

craft_bronze_dagger
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_dagger
    condition: craft_bronze_dagger_condition
}

craft_bronze_dagger_condition
{
    type: StockLessThanItem
    item: bronze_dagger
    amount: 2
}

craft_bronze_gladius
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_gladius
    condition: craft_bronze_gladius_condition
}

craft_bronze_gladius_condition
{
    type: StockLessThanItem
    item: bronze_gladius
    amount: 2
}

craft_bronze_longsword
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_longsword
    condition: craft_bronze_longsword_condition
}

craft_bronze_longsword_condition
{
    type: StockLessThanItem
    item: bronze_longsword
    amount: 2
}

craft_bronze_helmet
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_helmet
    condition: craft_bronze_helmet_condition
}

craft_bronze_helmet_condition
{
    type: StockLessThanItem
    item: bronze_helmet
    amount: 2
}

craft_bronze_chestplate
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_chestplate
    condition: craft_bronze_chestplate_condition
}

craft_bronze_chestplate_condition
{
    type: StockLessThanItem
    item: bronze_chestplate
    amount: 2
}

craft_bronze_leggings
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_leggings
    condition: craft_bronze_leggings_condition
}

craft_bronze_leggings_condition
{
    type: StockLessThanItem
    item: bronze_leggings
    amount: 2
}

craft_bronze_boots
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_boots
    condition: craft_bronze_boots_condition
}

craft_bronze_boots_condition
{
    type: StockLessThanItem
    item: bronze_boots
    amount: 2
}

craft_dragon_scale_helmet
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: dragon_scale_helmet
    condition: craft_dragon_scale_helmet_condition
}

craft_dragon_scale_helmet_condition
{
    type: StockLessThanItem
    item: dragon_scale_helmet
    amount: 2
}

craft_dragon_scale_mail
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: dragon_scale_mail
    condition: craft_dragon_scale_mail_condition
}

craft_dragon_scale_mail_condition
{
    type: StockLessThanItem
    item: dragon_scale_mail
    amount: 2
}

craft_dragon_scale_leggings
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: dragon_scale_leggings
    condition: craft_dragon_scale_leggings_condition
}

craft_dragon_scale_leggings_condition
{
    type: StockLessThanItem
    item: dragon_scale_leggings
    amount: 2
}

craft_dragon_scale_boots
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: dragon_scale_boots
    condition: craft_dragon_scale_boots_condition
}

craft_dragon_scale_boots_condition
{
    type: StockLessThanItem
    item: dragon_scale_boots
    amount: 2
}

craft_wooden_shield
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: wooden_shield
    condition: craft_wooden_shield_condition
}

craft_wooden_shield_condition
{
    type: StockLessThanItem
    item: wooden_shield
    amount: 1
}

craft_reinforced_shield
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: reinforced_shield
    condition: craft_reinforced_shield_condition
}

craft_reinforced_shield_condition
{
    type: StockLessThanItem
    item: reinforced_shield
    amount: 1
}

craft_bronze_shield
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: bronze_shield
    condition: craft_bronze_shield_condition
}

craft_bronze_shield_condition
{
    type: StockLessThanItem
    item: bronze_shield
    amount: 1
}

craft_tin_nails
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: tin_nail
    condition: craft_tin_nails_condition
}

craft_tin_nails_condition
{
    type: StockLessThanItem
    item: tin_nail
    amount: 20
}

craft_snake_staff
{
    type: CraftItems
    task_class: CRAFT_MAGICAL_STUFF_TASK
    item: snake_staff
    condition: craft_snake_staff_condition
}

craft_snake_staff_condition
{
    type: StockLessThanItem
    item: snake_staff
    amount: 1
}

craft_skull_staff
{
    type: CraftItems
    task_class: CRAFT_MAGICAL_STUFF_TASK
    item: skull_staff
    condition: craft_skull_staff_condition
}

craft_skull_staff_condition
{
    type: StockLessThanItem
    item: skull_staff
    amount: 1
}

craft_spiderang
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: spiderang
    condition: craft_spiderang_condition
}

craft_spiderang_condition
{
    type: StockLessThanItem
    item: skull_staff
    amount: 1
}

craft_boots_of_haste
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: boots_of_haste
    condition: craft_boots_of_haste_condition
}

craft_boots_of_haste_condition
{
    type: StockLessThanItem
    item: boots_of_haste
    amount: 1
}

craft_throwing_gloves
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: throwing_gloves
    condition: craft_throwing_gloves_condition
}

craft_throwing_gloves_condition
{
    type: StockLessThanItem
    item: throwing_gloves
    amount: 1
}

craft_magic_broom
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: magic_broom
    condition: craft_magic_broom_condition
}

craft_magic_broom_condition
{
    type: StockLessThanItem
    item: magic_broom
    amount: 1
}

craft_workbench
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: workbench
    self_craft: true
    condition: craft_workbench_condition
}

craft_workbench_condition
{
    type: StockLessThanItem
    item: workbench
    amount: 1
}

craft_cauldron
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: cauldron
    condition: craft_cauldron_condition
}

craft_cauldron_condition
{
    type: StockLessThanItem
    item: cauldron
    amount: 1
}

craft_table
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: table
    condition: craft_table_condition
}

craft_table_condition
{
    type: StockLessThanItem
    item: table
    amount: 1
}

craft_furnace
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: furnace
    condition: craft_furnace_condition
}

craft_furnace_condition
{
    type: FurnitureLessThan
    item: furnace
    amount: 1
}

craft_stone_anvil
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: stone_anvil
    condition: craft_stone_anvil_condition
}

craft_stone_anvil_condition
{
    type: FurnitureLessThan
    item: stone_anvil
    amount: 1
}

craft_copper_anvil
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: copper_anvil
    condition: craft_copper_anvil_condition
}

craft_copper_anvil_condition
{
    type: FurnitureLessThan
    item: copper_anvil
    amount: 1
}

craft_enchanting_table
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: enchanting_table
    condition: craft_enchanting_table_condition
}

craft_enchanting_table_condition
{
    type: FurnitureLessThan
    item: enchanting_table
    amount: 1
}

cook_stew
{
    type: CraftItems
    task_class: COOKING_TASK
    item: stew
    condition: cook_stew_condition
}

cook_stew_condition
{
    type: StockLessThanItem
    item: stew
    amount: 50
}

make_flower_juice
{
    type: CraftItems
    task_class: COOKING_TASK
    item: flower_juice
    condition: make_flower_juice_condition
}

make_flower_juice_condition
{
    type: StockLessThanItem
    item: flower_juice
    amount: 50
}

make_spore_juice
{
    type: CraftItems
    task_class: COOKING_TASK
    item: spore_juice
    condition: make_spore_juice_condition
}

make_spore_juice_condition
{
    type: StockLessThanItem
    item: spore_juice
    amount: 50
}

make_meaty_juice
{
    type: CraftItems
    task_class: COOKING_TASK
    item: meaty_juice
    condition: make_meaty_juice_condition
}

make_meaty_juice_condition
{
    type: StockLessThanItem
    item: meaty_juice
    amount: 50
}

make_gut_juice
{
    type: CraftItems
    task_class: COOKING_TASK
    item: gut_juice
    condition: make_gut_juice_condition
}

make_gut_juice_condition
{
    type: StockLessThanItem
    item: gut_juice
    amount: 50
}

make_the_arcane_harvest
{
    type: CraftItems
    task_class: CRAFT_MAGICAL_STUFF_TASK
    item: the_arcane_harvest
    condition: make_the_arcane_harvest_condition
}

make_the_arcane_harvest_condition
{
    type: StockLessThanItem
    item: the_arcane_harvest
    amount: 2
}

destroy_crate
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: crate_list
    furniture: true
    ability: break_furniture
    condition: destroy_crate_stock_condition
}

destroy_crate_stock_condition
{
    type: StockMoreThanItem
    item: crate
    amount: 10
}

destroy_workbench
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: workbench_list
    furniture: true
    ability: break_furniture
    condition: destroy_workbench_stock_condition
}

destroy_workbench_stock_condition
{
    type: StockMoreThanItem
    item: workbench
    amount: 3
}

destroy_furnace
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: furnace_list
    furniture: true
    ability: break_furniture
    condition: destroy_furnace_stock_condition
}

destroy_furnace_stock_condition
{
    type: StockMoreThanItem
    item: furnace
    amount: 3
}

destroy_cauldron
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: cauldron_list
    furniture: true
    ability: break_furniture
    condition: destroy_cauldron_stock_condition
}

destroy_cauldron_stock_condition
{
    type: StockMoreThanItem
    item: cauldron
    amount: 3
}

destroy_table
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: table_list
    furniture: true
    ability: break_furniture
    condition: destroy_table_stock_condition
}

destroy_table_stock_condition
{
    type: StockMoreThanItem
    item: table
    amount: 3
}

destroy_stone_anvil
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: stone_anvil_list
    furniture: true
    ability: break_furniture
    condition: destroy_stone_anvil_stock_condition
}

destroy_stone_anvil_stock_condition
{
    type: StockMoreThanItem
    item: stone_anvil
    amount: 3
}

destroy_copper_anvil
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: copper_anvil_list
    furniture: true
    ability: break_furniture
    condition: destroy_copper_anvil_stock_condition
}

destroy_copper_anvil_stock_condition
{
    type: StockMoreThanItem
    item: copper_anvil
    amount: 3
}

destroy_enchanting_table
{
    type: ExtractFromItems
    task_class: CITY_UPKEEP_TASK
    item_list: enchanting_table_list
    furniture: true
    ability: break_furniture
    condition: destroy_enchanting_table_stock_condition
}

destroy_enchanting_table_stock_condition
{
    type: StockMoreThanItem
    item: enchanting_table
    amount: 3
}
