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

TASKS_TYPE: HUMAN_CITY

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

manage_farm_plots
{
    type: ManageFarmPlots
    plot_type: human_farm_plot
    tile_list: human_city_farm_tiles
    max_area: 300
    max_distance: 100
}

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

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
    plot_type: human_farm_plot

    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
    plot_type: human_farm_plot

    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
    condition: hunt_leather_population_condition
    
}

hunt_leather_population_condition
{
    type: CreatureCountMoreThan
    creature_list: dweller_leather_hunt_list
    amount: 10
}

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: hunt_wool_population_condition
}

hunt_wool_population_condition
{
    type: CreatureCountMoreThan
    creature_list: dweller_wool_hunt_list
    amount: 10
}

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
{
    type: UseTiles
    task_class: FARMING_TASK_I
    tile_list: harvest_tiles
}

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

clear_farm_grass_for_food
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: grass_plant_tile_list
    ability: cut_grass
    farm_plot_type: human_farm_plot

    condition: diet_condition
}

clear_farm_grass_for_life_flower
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: grass_plant_tile_list
    ability: cut_grass
    farm_plot_type: human_farm_plot

    condition: life_flower_condition
}

plow_farm_tiles_for_food
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: plowable_tiles
    ability: stone_hoe_transform
    farm_plot_type: human_farm_plot

    condition: diet_condition
}

plow_farm_tiles_for_life_flower
{
    type: UseTiles
    task_class: FARMING_TASK_II
    tile_list: plowable_tiles
    ability: stone_hoe_transform
    farm_plot_type: human_farm_plot

    condition: life_flower_condition
}

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_seeds
{
    type: StockList
    task_class: FARMING_TASK_II
    item_list: human_all_seed_list
}

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_table
{
    type: CraftItems
    task_class: CRAFTING_TASK
    item: table
    condition: craft_table_condition
}

craft_table_condition
{
    type: StockLessThanItem
    item: 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
}

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
}

manage_table
{
    type: ManageFurniture
    task_class: CITY_UPKEEP_TASK
    item: table
    condition: manage_table_condition
}

manage_table_condition
{
    type: FurnitureLessThan
    item: table
    amount: 10
}

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
}
