{
	"items": [
	{
		"name": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-farmer-farm-idle.png",
						"frames": 1,
						"fps": 1
					},
					"walk-x": {
						"eltname": "npc-farmer-walk-se.png",
						"frames": 4,
						"fps": 12,
						"hflip": true
					},
					"walk+y": {
						"eltname": "npc-farmer-walk-ne.png",
						"frames": 4,
						"fps": 12,
						"hflip": true
					},
					"walk+x": {
						"eltname": "npc-farmer-walk-ne.png",
						"frames": 4,
						"fps": 12,
						"hflip": false
					},
					"walk-y": {
						"eltname": "npc-farmer-walk-se.png",
						"frames": 4,
						"fps": 12,
						"hflip": false
					},
					"work": {
						"eltname": "npc-farmer-farm-idle.png",
						"frames": 1,
						"fps": 1
					}
				}
			},
			"spriteScale": 0.5
		},
		"peep": {
			"culled": true
		},
		"placement": {
		},
		"routing": {
			"baseSpeed": 1.0
		},
		"script": {
			"updateDeltaSeconds": 0
		},
		"sim": {
		},
		"transient": true
	}, {
		"name": "npc-delivery",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"ranges": {
					"walk-x": {
						"eltname": "npc-farmer-wheelbarrow-se.png",
						"shifty": -5
					},
					"walk+y": {
						"eltname": "npc-farmer-wheelbarrow-ne.png",
						"shifty": -5
					},
					"walk+x": {
						"eltname": "npc-farmer-wheelbarrow-ne.png",
						"shifty": -5
					},
					"walk-y": {
						"eltname": "npc-farmer-wheelbarrow-se.png",
						"shifty": -5
					}
				}
			}
		}, 
		"peep": {
			"delivery": true
		}
	}, {
		"name": "npc-delivery-miner",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"walk-x": {
						"eltname": "npc-miner-cart-se.png"
					},
					"walk+y": {
						"eltname": "npc-miner-cart-ne.png"
					},
					"walk+x": {
						"eltname": "npc-miner-cart-ne.png"
					},
					"walk-y": {
						"eltname": "npc-miner-cart-se.png"
					}
				}
			}
		}

	}, {
		"name": "npc-delivery-trader",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"walk-x": {
						"eltname": "npc-trader-cart-se.png"
					},
					"walk+y": {
						"eltname": "npc-trader-cart-ne.png"
					},
					"walk+x": {
						"eltname": "npc-trader-cart-ne.png"
					},
					"walk-y": {
						"eltname": "npc-trader-cart-se.png"
					}
				}
			}
		}
	}, {
		"name": "npc-delivery-shopkeep",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"walk-x": {
						"eltname": "npc-shopkeep-cart-se.png"
					},
					"walk+y": {
						"eltname": "npc-shopkeep-cart-ne.png"
					},
					"walk+x": {
						"eltname": "npc-shopkeep-cart-ne.png"
					},
					"walk-y": {
						"eltname": "npc-shopkeep-cart-se.png"
					}
				}
			}
		}
	}, {
		"name": "npc-delivery-obstacle",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"chop": {
						"eltname": "npc-farmer-chop.png",
						"frames": 4,
						"fps": 7
					}
				}
			}
		}
	}, {
		"name": "npc-delivery-train-locomotive",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "npc-train-locomotive-idle.png",
						"shifty": 10,
						"frames": 3,
						"fps": 6
					},
					"walk-y": {
						"eltname": "npc-train-locomotive-moving.png",
						"shifty": 10,
						"frames": 4,
						"fps": 6
					}
				}
			}
		}
	}, {
		"name": "npc-delivery-train-car-1",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "npc-train-boxcar.png",
						"shifty": 20,
						"frames": 1,
						"fps": 0
					},
					"walk-y": {
						"eltname": "npc-train-boxcar.png",
						"shifty": 20,
						"frames": 1,
						"fps": 0
					}
				}
			}
		}
	}, {
		"name": "npc-delivery-train-car-2",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "npc-train-flatcar.png",
						"shifty": 20,
						"frames": 1,
						"fps": 0
					},
					"walk-y": {
						"eltname": "npc-train-flatcar.png",
						"shifty": 20,
						"frames": 1,
						"fps": 0
					}
				}
			}
		}
	}, {
		"name": "npc-delivery-train-car-3",
		"parent": "npc-delivery",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "npc-train-hoppercar.png",
						"shifty": 20,
						"frames": 1,
						"fps": 0
					},
					"walk-y": {
						"eltname": "npc-train-hoppercar.png",
						"shifty": 20,
						"frames": 1,
						"fps": 0
					}
				}
			}
		}


	}, {
		"name": "npc-carriage",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-carriage-idle.png",
						"shifty": -5
					},
					"walk-x": {
						"eltname": "npc-carriage-se.png",
						"shifty": -20
					},
					"walk+y": {
						"eltname": "npc-carriage.png",
						"shifty": -20
					},
					"walk+x": {
						"eltname": "npc-carriage.png",
						"shifty": -5
					},
					"walk-y": {
						"eltname": "npc-carriage-se.png",
						"shifty": -5
					}
				}
			}
		},
		"peep": {
			"culled": false
		}

	}, 	{
		"name": "npc-resident",
		"parent": "npc-base",
		"peep": {
			"delivery": true
		}
	}, {
		"name": "npc-worker",
		"parent": "npc-base"
	}, {
		"name": "npc-farmer",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-farmer-farm-idle.png"
					},
					"farm": {
						"eltname": "npc-farmer-farm.png",
						"frames": 3,
						"fps": 7
					},
					"skin": {
						"eltname": "npc-farmer-skin.png",
						"frames": 3,
						"fps": 6
					},
					"chop": {
						"eltname": "npc-farmer-chop.png",
						"frames": 4,
						"fps": 6
					},
					"ranch": {
						"eltname": "npc-farmer-ranch.png",
						"frames": 3,
						"fps": 6
					},
					"fish": {
						"eltname": "npc-farmer-fish.png",
						"frames": 1,
						"fps": 1
					},
					"cow": {
						"eltname": "cow.png",
						"frames": 1,
						"fps": 1
					}
				}
			}
		}
	}, {
		"name": "npc-miner",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-miner-mines-idle.png"
					},
					"walk-x": {
						"eltname": "npc-miner-walk-se.png"
					},
					"walk+y": {
						"eltname": "npc-miner-walk-ne.png"
					},
					"walk+x": {
						"eltname": "npc-miner-walk-ne.png"
					},
					"walk-y": {
						"eltname": "npc-miner-walk-se.png"
					},
					"work": {
						"eltname": "npc-miner-mine-active.png",
						"frames": 4,
						"fps": 6
					}
				}
			}
		}
	}, {
		"name": "npc-panner",
		"parent": "npc-miner",
		"display": {
			"atlas": {
				"ranges": {
					"work": {
						"eltname": "npc-miner-pan-active.png",
						"frames": 2,
						"fps": 8,
						"shifty": 40
					}
				}
			}
		}
	}, {
		"name": "npc-sheriff",
		"parent": "npc-base",
		"routing": {
			"baseSpeed": 0.5
		},
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-sheriff-idle.png"
					},
					"walk-x": {
						"eltname": "npc-sheriff-patrol-se.png",
						"fps": 9
					},
					"walk+y": {
						"eltname": "npc-sheriff-patrol-ne.png",
						"fps": 9
					},
					"walk+x": {
						"eltname": "npc-sheriff-patrol-ne.png",
						"fps": 9
					},
					"walk-y": {
						"eltname": "npc-sheriff-patrol-se.png",
						"fps": 9
					},
					"work": {
						"eltname": "npc-sheriff-guard.png",
						"frames": 3,
						"pingpong": true,
						"fps": 3
					}
				}
			}
		},
		"peep": {
			"culled": false
		}
	}, {
		"name": "npc-shopkeep",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-shopkeep-idle.png"
					},
					"walk-x": {
						"eltname": "npc-shopkeep-walk-se.png"
					},
					"walk+y": {
						"eltname": "npc-shopkeep-walk-ne.png"
					},
					"walk+x": {
						"eltname": "npc-shopkeep-walk-ne.png"
					},
					"walk-y": {
						"eltname": "npc-shopkeep-walk-se.png"
					},
					"sell": {
						"eltname": "npc-shopkeep-sell-active.png",
						"frames": 3,
						"pingpong": true,
						"fps": 8
					},
					"smith": {
						"eltname": "npc-shopkeep-smith-active.png",
						"frames": 4,
						"fps": 6
					}
				}
			}
		}



	}, {
		"name": "npc-trader",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-trader-idle.png"
					},
					"walk-x": {
						"eltname": "npc-trader-walk-se.png"
					},
					"walk+y": {
						"eltname": "npc-trader-walk-ne.png"
					},
					"walk+x": {
						"eltname": "npc-trader-walk-ne.png"
					},
					"walk-y": {
						"eltname": "npc-trader-walk-se.png"
					},
					"sell": {
						"eltname": "npc-trader-active.png",
						"frames": 3,
						"pingpong": true,
						"fps": 5
					}
					
				}
			}
		} 
	},  {
		"name": "npc-clerk",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-clerk-idle.png"
					},
					"walk-x": {
						"eltname": "npc-clerk-walk-se.png"
					},
					"walk+y": {
						"eltname": "npc-clerk-walk-ne.png"
					},
					"walk+x": {
						"eltname": "npc-clerk-walk-ne.png"
					},
					"walk-y": {
						"eltname": "npc-clerk-walk-se.png"
					},
					"work": {
						"eltname": "npc-clerk-work-active.png",
						"frames": 3,
						"pingpong": true,
						"fps": 8
					},
					"preach": {
						"eltname": "npc-clerk-preach-active.png",
						"frames": 3,
						"fps": 6
					}
				}
			}
		}


	}, {
		"name": "npc-teacher",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-clerk-teach-idle.png"
					},
					"walk-x": {
						"eltname": "npc-teacher-walk-se.png"
					},
					"walk+y": {
						"eltname": "npc-teacher-walk-ne.png"
					},
					"walk+x": {
						"eltname": "npc-teacher-walk-ne.png"
					},
					"walk-y": {
						"eltname": "npc-teacher-walk-se.png"
					},
					"teach": {
						"eltname": "npc-clerk-teach-active.png",
						"frames": 3,
						"pingpong": true,
						"fps": 8
					}
				}
			}
		}
	}, {
		"name": "npc-barkeep",
		"parent": "npc-base",
		"routing": {
			"baseSpeed": 0.5
		},
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-barkeep-idle.png"
					},
					"walk-x": {
						"eltname": "npc-barkeep-patrol-se.png",
						"fps": 9
					},
					"walk+y": {
						"eltname": "npc-barkeep-patrol-ne.png",
						"fps": 9
					},
					"walk+x": {
						"eltname": "npc-barkeep-patrol-ne.png",
						"fps": 9
					},
					"walk-y": {
						"eltname": "npc-barkeep-patrol-se.png",
						"fps": 9
					},
					"work": {
						"eltname": "npc-barkeep-active.png",
						"frames": 3,
						"fps": 3
					}
				}
			}
		}
	}, {
		"name": "npc-barkeep-walker",
		"parent": "npc-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-barkeep-idle.png"
					},
					"walk-x": {
						"eltname": "npc-barkeep-patrol-se.png"
					},
					"walk+y": {
						"eltname": "npc-barkeep-patrol-ne.png"
					},
					"walk+x": {
						"eltname": "npc-barkeep-patrol-ne.png"
					},
					"walk-y": {
						"eltname": "npc-barkeep-patrol-se.png"
					}
				}
			}
		}
	}, 
	{
		"name": "npc-lady",
		"parent": "npc-base",
		"routing": {
			"baseSpeed": 0.5
		},
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-lady-idle.png",
						"frames": 3,
						"fps": 3,
						"pingpong": true
					},
					"walk-x": {
						"eltname": "npc-lady-walk-se.png",
						"fps": 9
					},
					"walk+y": {
						"eltname": "npc-lady-walk-ne.png",
						"fps": 9
					},
					"walk+x": {
						"eltname": "npc-lady-walk-ne.png",
						"fps": 9
					},
					"walk-y": {
						"eltname": "npc-lady-walk-se.png",
						"fps": 9
					},
					"work": {
						"eltname": "npc-lady-active.png",
						"frames": 2,
						"fps": 3
					}
				}
			}
		}
	}, {
		"name": "npc-unemployed",
		"parent": "npc-base",
		"routing": {
			"baseSpeed": 0.5
		},
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "npc-clerk-teach-idle.png"
					},
					"walk-x": {
						"eltname": "npc-unemployed-walk-se.png"
					},
					"walk+y": {
						"eltname": "npc-unemployed-walk-ne.png"
					},
					"walk+x": {
						"eltname": "npc-unemployed-walk-ne.png"
					},
					"walk-y": {
						"eltname": "npc-unemployed-walk-se.png"
					},
					"loiter": {
						"eltname": "npc-unemployed-loiter-se.png",
						"frames": 3,
						"pingpong": true,
						"fps": 4
					}
				}
			}
		}


	}, 	{
		"name": "river-base",
		"display": {
			"layer": 1,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "river-cross.png",
						"frames": 1,
						"fps": 0
					},
					"cross": {
						"eltname": "river-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"curve-e": {
						"eltname": "river-curve-e.png",
						"frames": 1,
						"fps": 0
					},
					"curve-n": {
						"eltname": "river-curve-n.png",
						"frames": 1,
						"fps": 0
					},
					"curve-s": {
						"eltname": "river-curve-s.png",
						"frames": 1,
						"fps": 0
					},
					"curve-w": {
						"eltname": "river-curve-w.png",
						"frames": 1,
						"fps": 0
					},
					"end-ne": {
						"eltname": "river-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"end-nw": {
						"eltname": "river-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"end-se": {
						"eltname": "river-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"end-sw": {
						"eltname": "river-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"straight-nesw": {
						"eltname": "river-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"straight-nwse": {
						"eltname": "river-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"tee-ne": {
						"eltname": "river-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"tee-nw": {
						"eltname": "river-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"tee-se": {
						"eltname": "river-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"tee-sw": {
						"eltname": "river-straight-nwse.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"placement": {
			"collisionMask": 8,
			"blockedBy": 0
		},
		"selection": {
			"type": "ground",
			"highlightable": false,
			"selectable": false
		}
	}, 	{
		"name": "coast-base",
		"display": {
			"layer": 1,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "coast-cross.png",
						"frames": 1,
						"fps": 0
					},
					"delta": {
						"eltname": "coast-delta.png",
						"frames": 1,
						"fps": 0
					},
					"cross": {
						"eltname": "coast-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"curve-e": {
						"eltname": "coast-curve-e.png",
						"frames": 1,
						"fps": 0
					},
					"curve-n": {
						"eltname": "coast-curve-n.png",
						"frames": 1,
						"fps": 0
					},
					"curve-s": {
						"eltname": "coast-curve-s.png",
						"frames": 1,
						"fps": 0
					},
					"curve-w": {
						"eltname": "coast-curve-w.png",
						"frames": 1,
						"fps": 0
					},
					"end-ne": {
						"eltname": "coast-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"end-nw": {
						"eltname": "coast-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"end-se": {
						"eltname": "coast-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"end-sw": {
						"eltname": "coast-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"straight-nesw": {
						"eltname": "coast-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"straight-nwse": {
						"eltname": "coast-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"tee-ne": {
						"eltname": "coast-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"tee-nw": {
						"eltname": "coast-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"tee-se": {
						"eltname": "coast-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"tee-sw": {
						"eltname": "coast-straight-nwse.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"placement": {
			"collisionMask": 8,
			"blockedBy": 0
		},
		"selection": {
			"type": "ground",
			"highlightable": false,
			"selectable": false
		}
	}, {
		"name": "road-base",
		"display": {
			"layer": 1,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "road-cross.png",
						"frames": 1,
						"fps": 0
					},
					"cross": {
						"eltname": "road-cross.png",
						"frames": 1,
						"fps": 0
					},
					"curve-e": {
						"eltname": "road-curve-e.png",
						"frames": 1,
						"fps": 0
					},
					"curve-n": {
						"eltname": "road-curve-n.png",
						"frames": 1,
						"fps": 0
					},
					"curve-s": {
						"eltname": "road-curve-s.png",
						"frames": 1,
						"fps": 0
					},
					"curve-w": {
						"eltname": "road-curve-w.png",
						"frames": 1,
						"fps": 0
					},
					"end-ne": {
						"eltname": "road-end-ne.png",
						"frames": 1,
						"fps": 0
					},
					"end-nw": {
						"eltname": "road-end-nw.png",
						"frames": 1,
						"fps": 0
					},
					"end-se": {
						"eltname": "road-end-se.png",
						"frames": 1,
						"fps": 0
					},
					"end-sw": {
						"eltname": "road-end-sw.png",
						"frames": 1,
						"fps": 0
					},
					"straight-nesw": {
						"eltname": "road-straight-nesw.png",
						"frames": 1,
						"fps": 0
					},
					"straight-nwse": {
						"eltname": "road-straight-nwse.png",
						"frames": 1,
						"fps": 0
					},
					"tee-ne": {
						"eltname": "road-tee-ne.png",
						"frames": 1,
						"fps": 0
					},
					"tee-nw": {
						"eltname": "road-tee-nw.png",
						"frames": 1,
						"fps": 0
					},
					"tee-se": {
						"eltname": "road-tee-se.png",
						"frames": 1,
						"fps": 0
					},
					"tee-sw": {
						"eltname": "road-tee-sw.png",
						"frames": 1,
						"fps": 0
					},
					"bridge": {
						"eltname": "bridge.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"placement": {
			"collisionMask": 4,
			"blockedBy": 14
		},
		"road": {
		},
		"selection": {
			"type": "ground",
			"deleteSkipConfirm": true,
			"selectable": true
		},
		"store": {
			"category": "decos",
			"priority": 50,
			"price": 0,
			"confirmplace": false,
			"multiplace": true
		}
	}, {
		"name": "road-fixed-in",
		"parent": "road-base",
		"road": {
			"forcedNeighborBitmap": 2
		},
		"selection": {
			"selectable": false
		},
		"store": {
			"show": false
		}
	}, {
		"name": "road-fixed-out",
		"parent": "road-base",
		"road": {
			"forcedNeighborBitmap": 8
		},
		"selection": {
			"selectable": false
		},
		"store": {
			"show": false
		}
	}, 	{
		"name": "tracks-base",
		"display": {
			"layer": 1,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "train-track.png",
						"frames": 1,
						"fps": 0
					},
					"cross": {
						"eltname": "train-crossing.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"placement": {
			"collisionMask": 8,
			"blockedBy": 0
		},
		"selection": {
			"type": "ground",
			"highlightable": false,
			"selectable": false
		}




	}, {
		"name": "bldg",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"frames": 1,
						"fps": 0
					}
				}
			},
			"spriteScale": 0.5
		},
		"placement": {
			"collisionMask": 2,
			"blockedBy": 14
		},
		"script": {
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 7 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckScenarioFlag", "name": "disable-fire", "expected": "absent" },
						"map fire-hazard < 1 max"
					],
					"outputs": [ "map 0.03 fire-hazard" ]
				},
				"startAFire": {
					"frequency": "every 5 days",
					"checks": [ 
						"map fire-hazard >= 0.8 max",
						{ "_type": "somasim.pandora.checks::CheckRandom", "below": 0.3 }
					],
					"success": [
						"_ a-start-fire"
					]
				}
			}
		}











	}, {
		"_comment": "------------------------------ TRADE --------------------------------------------",
		"name": "bldg-trade",
		"parent": "bldg",
		"tags": { 
			"type": "trade" 
		},
		"selection": {
			"type": "trade"
		},
		"sim": {
		}
	}, {
		"name": "bldg-trade-store",
		"parent": "bldg-trade",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "ts-depot.png",
						"shifty": 13
					}
				}
			}
		},
		"selection": {
			"deletable": true,
			"movable": true
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 1000 days",
					"outputs": [ "map 0 fire-hazard" ]
				},
				"startAFire": {
					"frequency": "every 1000 days",
					"success": [ ]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 300
		}
	}, {
		"name": "bldg-trade-station",
		"parent": "bldg-trade",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "ts-station.png",
						"shifty": 1
					}
				}
			}
		},
		"selection": {
			"type": "station",
			"deletable": true,
			"movable": true
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 1000 days",
					"outputs": [ "map 0 fire-hazard" ]
				},
				"startAFire": {
					"frequency": "every 1000 days",
					"success": [ ]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 300,
			"show": false
		}
















	}, {
		"_comment": "oooooooooooooooooooooooooooooooo HOUSES oooooooooooooooooooooooooooooooooooooooooooo",
		"name": "bldg-house",
		"parent": "bldg",
		"tags": { 
			"type": "house" 
		},
		"feedback": {
		},
		"residence": {
			"resources": [ "food" ]
		},
		"selection": {
			"type": "house"
		},
		"sim": {
			"pulldistance": 5,
			"rules": {
				"produceFireHazard": {
					"outputs": [ "map 0.04 fire-hazard" ]
				},
				"produceBoredom": {
					"frequency": "every 4 days",
					"checks": [ "map boredom < 1" ],
					"outputs": [ "map 0.1 boredom" ]
				},
				"produceUnemploymentCrime": {
					"frequency": "every 100000 days",
					"checks": [ 
						"unit residents > 0", 
						{ "_type": "somasim.pandora.checks::CheckScenarioFlag", "name": "disable-crime", "expected": "absent" },
						{ "_type": "somasim.pandora.checks::CheckCrimeSituation", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckRandom", "below": 1 },
						"map crime < 1 max"
					],
					"success": [
						"_ a-spawn-patrol npc npc-unemployed whenidle loiter repeat 3 then return radius 1",
						"_ a-change-resource-in-area radius 2 res crime amount 0.5"
					]
				},
				"bringFood": {
					"frequency": "every 3 days",
					"priority": 10,
					"checks": [ 
						"unit food < 5", 
						{ "_type": "somasim.pandora.checks::CheckHasAnyFood", "bin": "player", "expected": true }
					], 
					"success": [
						"_ a-bring-stuff type food amount 5",
						"_ a-spawn-walker npc auto to bldg-trade-store then return"
					]
				},
				"specialFoodFail": {
					"frequency": "every 3 days",
					"checks": [ "unit food < 1" ],
					"success": [
						"_ a-problem type food state true",
						"_ a-feedback-upgrade-blocked resource food blocked true"
					],
					"failedChecks": [
						"_ a-problem type food state false",
						"_ a-feedback-upgrade-blocked resource food blocked false"
					]
				},
				"getRent": {
					"frequency": "every 7 days",
					"checks": [ "unit food > 0" ],
					"success": [
						"_ a-get-rent",
						"_ a-feedback-message key sim.house.ranout resource food show false"
					]
				},
				"growPopulation": {
					"frequency": "every 7 days",
					"checks": [ "unit residents < 0" ],
					"outputs": [ "unit 1 residents" ],
					"success": [
						"_ a-spawn-walker-entering npc auto"
					]
				},
				"shrinkPopulation": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "unit food = 0" ],
					"inputs": [ "unit 1 residents" ],
					"success": [ 
						"_ a-spawn-walker-leaving npc auto",
						"_ a-floater resource residents text -1",
						"_ a-help-popup name help-move-out",
						"_ a-feedback-message key sim.house.ranout resource food show true"
					]
				},					 
				"hintUpgrade": {
					"frequency": "every 7 days",
					"checks": [ "unit residents < 0", "unit food > 0" ],
					"success": [
						"_ a-feedback-message key sim.house.evolve resource food"
					]
				},
				"doUpgrade": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 1000", "unit food > 0" ],
					"outputs": [ "unit 1 residents" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "none" }
					]
				},
				"doDowngrade": {
					"frequency": "every 3 days",
					"checks": [ "unit residents < 0", "unit food = 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "none" }
					]
				}
			}
		}
	}, {
		"name": "bldg-house-tent-1",
		"parent": "bldg-house",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-tent-1.png"
					}
				}
			}
		},
		"residence": {
			"maxresidents": 1,
			"tent": true
		},
		"selection": {
			"deletable": false
		},
		"sim": {
			"rules": {
				"bringFood": {
					"frequency": "every 3000 days",
					"checks": [ 
						"unit food < 0"
					] 
				},
				"showinfo": {
					"frequency": "every 7 days",
					"success": [
						"_ a-feedback-message key sim.house.tentinfo resource residents days 7"
					]
				},
				"shrinkPopulation": {
					"frequency": "every 7 days",
					"checks": [ 
						"unit residents > 0", 
						{ "_type": "somasim.pandora.checks::CheckUnemployment", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckRandom", "below": 1 }
					],
					"success": [ 
						"_ a-spawn-walker npc auto to house then die",
						"_ a-floater resource residents text -1"
					]
				},
				"doDowngrade": {
					"frequency": "every 3 days",
					"checks": [ "unit residents <= 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityDelete" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}
	}, {
		"name": "bldg-house-tent-2",
		"parent": "bldg-house-tent-1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-tent-2.png"
					}
				}
			}
		},
		"sim": {
			"rules": {
				"doDowngrade": {
					"checks": [ "unit residents < 2" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-tent-1" }
					]
				}

			}
		}
	}, {
		"name": "bldg-house-tent-3",
		"parent": "bldg-house-tent-2",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-tent-3.png"
					}
				}
			}
		},
		"sim": {
			"rules": {
				"doDowngrade": {
					"checks": [ "unit residents < 3" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-tent-2" }
					]
				}

			}
		}
	}, {
		"name": "bldg-house-0-1",
		"parent": "bldg-house",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-foundation.png",
						"shifty": 16,
						"shiftx": -3

					}
				}
			}
		},
		"sim": {
			"rules": {
				"specialFoodFail": {
					"success": [
						"_ a-feedback-upgrade-blocked resource food blocked true"
					],
					"failedChecks": [
						"_ a-feedback-upgrade-blocked resource food blocked false"
					]
				},
				"produceFireHazard": {
					"outputs": [ "map 0 fire-hazard" ]
				},
				"bringFood": {
					"frequency": "every 1 days"
				},
				"growPopulation": {
					"frequency": "every 2 days",
					"checks": [ "unit residents = 0", "unit food > 0" ]
				},
				"doUpgrade": {
					"frequency": "every 3 days",
					"checks": [ "unit residents >= 1", "unit food > 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-1-1" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"priority": 100,
			"price": 0,
			"reopen": true
		}
	}, {
		"name": "bldg-house-1-1",
		"parent": "bldg-house",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-shack-1.png",
						"shiftx": -3,
						"shifty": 16
					}
				}
			}
		},
		"residence": {
			"maxresidents": 3,
			"weeklyRent": 20
		},
		"sim": {
			"rules": {
				"produceUnemploymentCrime": {
					"frequency": "every 6 days"
				},
				"eatFood": {
					"frequency": "every 7 days",
					"inputs": [ "unit 1 food" ],
					"failedInputs": [
						"_ a-feedback-message key sim.house.ranout resource food"
					]
				},	
				"growPopulation": {
					"checks": [ "unit residents < 3", "unit food > 0" ]
				},
				"hintUpgrade": {
					"checks": [ "unit residents = 2", "unit food > 0" ]
				},
				"shrinkPopulation": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 1", "unit food = 0" ]
				},
				"doUpgrade": {
					"checks": [ "unit residents = 3", "unit food > 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-1-2" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}
	}, {
		"name": "bldg-house-1-2",
		"parent": "bldg-house-1-1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-shack-2.png"
					}
				}
			}
		}, 
		"residence": {
			"maxresidents": 5,
			"resources": [ "food", "lumber" ],
			"weeklyRent": 30
		},
		"sim": {
			"rules": {
				"bringLumber": {
					"frequency": "every 3 days",
					"checks": [ "unit lumber < 5" ], 
					"inputs": [ "player 5 lumber" ],
					"outputs": [ "unit 5 lumber" ],
					"success": [
						"_ a-feedback-upgrade-blocked resource lumber blocked false",
						"_ a-spawn-walker npc auto to bldg-trade-store then return"
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.desired", "resource": "lumber", "days": 3 },
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "lumber", "blocked": true }
					]
				},
				"growPopulation": {
					"checks": [ "unit residents < 5", "unit food > 0" ]
				},
				"shrinkPopulation": {
					"checks": [ "unit residents > 0", "unit food = 0" ]
				},
				"hintUpgrade": {
					"checks": [ "unit residents = 4", "unit food,lumber > 0" ]
				},
				"doUpgrade": {
					"checks": [ "unit residents = 5", "unit food,lumber > 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-2-1" }
					]
				},
				"doDowngrade": {
					"checks": [ "unit residents <= 3" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-1-1" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}

	}, {
		"name": "bldg-house-2-1",
		"parent": "bldg-house-1-2",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-cabin-1.png"
					}
				}
			}
		}, 
		"residence": {
			"maxresidents": 7,
			"resources": [ "food", "lumber", "booze" ],
			"weeklyRent": 40
		},
		"sim": {
			"rules": {
				"bringBooze": {
					"frequency": "every 3 days",
					"checks": [ 
						"unit booze < 5", 
						{ "_type": "somasim.pandora.checks::CheckHasAnyBooze", "bin": "player", "expected": true }
					], 
					"success": [
						"_ a-bring-stuff type booze amount 5"
					]
				},
				"specialBoozeFail": {
					"frequency": "every 1 days",
					"checks": [ "unit booze < 5" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.desired", "resource": "booze", "days": 1 },
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "booze", "blocked": true }
					],
					"failedChecks": [
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "booze", "blocked": false }
					]
				},
				"eatLumber": {
					"frequency": "every 7 days",
					"inputs": [ "unit 1 lumber" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "lumber", "show": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "lumber" }
					]
				},
				"growPopulation": {
					"checks": [ "unit residents < 7", "unit food,lumber > 0" ]
				},
				"shrinkPopulationDueToLumber": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "unit lumber = 0" ],
					"inputs": [ "unit 1 residents" ],
					"success": [ 
						"_ a-floater resource residents text -1",
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "lumber" }
					]
				},
				"checkBoredom": {
					"frequency": "every 7 days",
					"checks": [ "map boredom >= 0.5" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.fail.boredom.nv", "resource": "boredom" }
					]
				},
				"hintUpgrade": {
					"checks": [ "unit residents = 6", "unit food,lumber,booze > 0", "map boredom < 0.5" ]
				},
				"doUpgrade": {
					"checks": [ "unit residents = 7", "unit food,lumber,booze > 0", "map boredom < 0.5" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-2-2" }
					]
				},
				"doDowngrade": {
					"checks": [ "unit residents <= 5" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-1-2" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}

	}, {
		"name": "bldg-house-2-2",
		"parent": "bldg-house-2-1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-cabin-2.png"
					}
				}
			}
		}, 
		"residence": {
			"maxresidents": 9,
			"resources": [ "food", "lumber", "booze", "boards" ],
			"weeklyRent": 50
		},
		"sim": {
			"rules": {
				"bringBoards": {
					"frequency": "every 3 days",
					"checks": [ "unit boards < 5" ], 
					"inputs": [ "player 5 boards" ],
					"outputs": [ "unit 5 boards" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "boards", "blocked": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.desired", "resource": "boards", "days": 3 },
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "boards", "blocked": true }
					]
				},
				"eatBooze": {
					"frequency": "every 7 days",
					"inputs": [ "unit 1 booze" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "booze", "show": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "booze" }
					]
				},
				"growPopulation": {
					"checks": [ "unit residents < 9", "unit food,lumber,booze > 0" ]
				},
				"shrinkPopulationDueToBooze": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "unit booze = 0" ],
					"inputs": [ "unit 1 residents" ],
					"success": [ 
						"_ a-floater resource residents text -1",
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "booze" }
					]
				},
				"shrinkPopulationDueToBoredom": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "map boredom > 0.7" ],
					"inputs": [ "unit 2 residents" ],
					"success": [ 
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.devolve.boredom.nv", "resource": "boredom" }
					]
				},
				"hintUpgrade": {
					"checks": [ "unit residents = 8", "unit food,lumber,booze,boards > 0" ]
				},
				"doUpgrade": {
					"checks": [ "unit residents = 9", "unit food,lumber,booze,boards > 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-3-1" }
					]
				},
				"doDowngrade": {
					"checks": [ "unit residents <= 7" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-2-1" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}

	}, {
		"name": "bldg-house-3-1",
		"parent": "bldg-house-2-2",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-house-1.png",
						"shifty": 15
					}
				}
			}
		}, 
		"residence": {
			"maxresidents": 11,
			"resources": [ "food", "lumber", "booze", "boards", "leather" ],
			"weeklyRent": 65
		},
		"sim": {
			"rules": {
				"bringFood": {
					"checks": [ 
						"unit food < 6", 
						{ "_type": "somasim.pandora.checks::CheckHasAnyFood", "bin": "player", "expected": true }
					],
					"success": [
						"_ a-bring-stuff type food amount 6",
						"_ a-spawn-walker npc auto to bldg-trade-store then return"
					]
				},
				"specialFoodFail": {
					"checks": [ "unit food < 2" ]
				},
				"eatFood": {
					"inputs": [ "unit 2 food" ]
				},	
				"bringLeather": {
					"frequency": "every 3 days",
					"checks": [ "unit leather < 5" ], 
					"inputs": [ "player 5 leather" ],
					"outputs": [ "unit 5 leather" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "leather", "blocked": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.desired", "resource": "leather", "days": 3 },
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "leather", "blocked": true }
					]
				},
				"eatBoards": {
					"frequency": "every 7 days",
					"inputs": [ "unit 1 boards" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "boards", "show": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "boards" }
					]
				},
				"shrinkPopulationDueToBoards": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "unit boards = 0" ],
					"inputs": [ "unit 1 residents" ],
					"success": [ 
						"_ a-floater resource residents text -1",
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "boards" }
					]
				},
				"growPopulation": {
					"checks": [ "unit residents < 11", "unit food,lumber,booze,boards > 0" ]
				},
				"hintUpgrade": {
					"checks": [ "unit residents = 10", "unit food,lumber,booze,boards,leather > 0" ]
				},
				"doUpgrade": {
					"checks": [ "unit residents = 11", "unit food,lumber,booze,boards,leather > 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-3-2" }
					]
				},
				"doDowngrade": {
					"checks": [ "unit residents <= 9" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-2-2" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}

	}, {
		"name": "bldg-house-3-2",
		"parent": "bldg-house-3-1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-house-2.png",
						"shifty": 0						
					}
				}
			}
		}, 
		"residence": {
			"maxresidents": 13,
			"resources": [ "food", "lumber", "booze", "boards", "leather", "fabric" ],
			"weeklyRent": 75
		},
		"sim": {
			"rules": {
				"produceNeedEducation": {
					"frequency": "every 6 days",
					"checks": [ "map need-education < 1" ],
					"outputs": [ "map 0.1 need-education" ]
				},
				"bringFabric": {
					"frequency": "every 3 days",
					"checks": [ "unit fabric < 5" ], 
					"inputs": [ "player 5 fabric" ],
					"outputs": [ "unit 5 fabric" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "fabric", "blocked": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.desired", "resource": "fabric", "days": 3 },
						{ "_type": "somasim.pandora.actions::AFeedbackUpgradeBlocked", "resource": "fabric", "blocked": true }
					]
				},
				"eatLeather": {
					"frequency": "every 7 days",
					"inputs": [ "unit 1 leather" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "leather", "show": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "leather" }
					]
				},
				"shrinkPopulationDueToLeather": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "unit leather = 0" ],
					"inputs": [ "unit 1 residents" ],
					"success": [ 
						"_ a-floater resource residents text -1",
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "leather" }
					]
				},
				"growPopulation": {
					"checks": [ "unit residents < 13", "unit food,lumber,booze,boards,leather > 0" ]
				},
				"hintUpgrade": {
					"checks": [ "unit residents = 12", "unit food,lumber,booze,boards,leather,fabric > 0" ]
				},
				"doUpgrade": {
					"checks": [ "unit residents = 13", "unit food,lumber,booze,boards,leather,fabric > 0" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-3-3" }
					]
				},
				"doDowngrade": {
					"checks": [ "unit residents <= 11" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-3-1" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}

	}, {
		"name": "bldg-house-3-3",
		"parent": "bldg-house-3-2",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "house-house-3.png"						
					}
				}
			}
		}, 
		"residence": {
			"maxresidents": 15,
			"weeklyRent": 85
		},
		"sim": {
			"rules": {
				"eatFabric": {
					"frequency": "every 7 days",
					"inputs": [ "unit 1 fabric" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "fabric", "show": false }
					],
					"failedInputs": [
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "fabric" }
					]
				},
				"shrinkPopulationDueToFabric": {
					"frequency": "every 7 days",
					"checks": [ "unit residents > 0", "unit fabric = 0" ],
					"inputs": [ "unit 1 residents" ],
					"success": [ 
						"_ a-floater resource residents text -1",
						{ "_type": "somasim.pandora.actions::AFeedbackMessage", "key": "sim.house.ranout", "resource": "fabric" }
					]
				},
				"growPopulation": {
					"checks": [ "unit residents < 15", "unit food,lumber,booze,boards,leather,fabric > 0" ]
				},
				"hintUpgrade": {
					"frequency": "every 10000 days",
					"checks": [ "unit residents = -1" ]
				},
				"doUpgrade": {
					"frequency": "every 10000 days",
					"checks": [ "unit residents = -1" ]
				},
				"doDowngrade": {
					"checks": [ "unit residents <= 13" ],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityUpgrade", "next": "bldg-house-3-2" }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 0,
			"show": false
		}













	}, {
		"_comment": "oooooooooooooooooooooooooooooooo WORKPLACES L 0 oooooooooooooooooooooooooooooooooooooooooooo",
		"name": "bldg-work",
		"parent": "bldg",
		"display": {
			"atlas": {
				"asset": "ubertex"
			}
		},
		"feedback": { 
		},
		"roaduser": {
		},
		"selection": {
			"type": "workplace"
		},
		"sim": {
			"constants": {
				"work-delay": 7,
				"work-output-amt": 0,
				"work-input-amt": 0
			},
			"rules": {
				"checkWorkers": {
					"frequency": "every 1 days",
					"checks": [ 
						"unit workers = 0",
						{ "_type": "somasim.pandora.checks::CheckWorkplaceOpen", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckEntityAge", "olderthan": 3 }
					],
					"failedChecks": [
						"_ a-problem type workers state false",
						"_ a-feedback-message key sim.fail.workers resource workers show false"
					],
					"success": [
						"_ a-completion-timer-clear-all",
						"_ a-problem type workers state true",
						"_ a-feedback-message key sim.fail.workers resource workers show true"
					]
				},
				"checkClosed": {
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckWorkplaceOpen", "expected": false }
					],
					"failedChecks": [
						"_ a-problem type closed state false",
						"_ a-feedback-message key sim.fail.closed resource workers show false"
					],
					"success": [
						"_ a-completion-timer-clear-all",
						"_ a-problem type closed state true",
						"_ a-feedback-message key sim.fail.closed resource workers show true"
					]
				},
				"payWages": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ 
						"unit wages <= 1", 
						"unit workers > 0",
						{ "_type": "somasim.pandora.checks::CheckCanPayWages" }
					],
					"outputs": [ "unit 7 wages" ],
					"success": [
						"_ a-pay-workplace-wages",
						"_ a-problem type wages state false",
						"_ a-feedback-message key sim.fail.wages resource workers show false"
					]
				},
				"consumeWages": {
					"frequency": "every 1 days",
					"checks": [ "unit workers > 0" ],
					"inputs": [ "unit 1 wages" ],
					"failedInputs": [
						"_ a-completion-timer-clear-all",
						"_ a-problem type wages state true",
						"_ a-feedback-message key sim.fail.wages resource workers show true"
					]
				},
				"checkRoad": {
					"frequency": "every 2 days",
					"checks": [
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					],
					"success": [
						"_ a-problem type road state false",
						"_ a-feedback-message key sim.fail.road show false"
					],
					"failedChecks": [
						"_ a-problem type road state true",
						"_ a-feedback-message key sim.fail.road show true"
					]
				},

				"doWork": {
					"frequency": "every work-delay days",
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					]
				},
				"deliverWork": {
					"priority": 5,
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					]
				},
				"increaseCrime": {
					"frequency": "every 7 days",
					"checks": [ 
						"unit workers > 0", 
						{ "_type": "somasim.pandora.checks::CheckScenarioFlag", "name": "disable-crime", "expected": "absent" },
						"map crime < 1 max"
					],
					"outputs": [ "map 0.1 crime" ]
				},
				"decreaseCrime": {
					"frequency": "every 7 days",
					"checks": [ "unit workers = 0" ],
					"inputs": [ "map 0.015 crime" ]
				},
				"crimeCausesProblems": {
					"frequency": "every 10 days",
					"checks": [ 
						"map crime >= 0.8 max",
						{ "_type": "somasim.pandora.checks::CheckRandom", "below": 0.5 }
					],
					"success": [
						"_ a-start-crime",
						"_ a-problem type crime state true",
						"_ a-feedback-message key sim.map.crime-effect resource crime"
					],
					"failedChecks": [
						"_ a-problem type crime state false"
					]
				}
			}					
		}	
	}, {
		"name": "bldg-work-lv0",
		"parent": "bldg-work",
		"sim": {
			"constants": {
				"work-output-amt": 5
			}
		}
	}, {
		"name": "bldg-work-lv0-farm",
		"parent": "bldg-work-lv0",
		"tags": { 
			"type": "farm" 
		},
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "lv0-farm-1.png",
						"shifty": 10,
						"shiftx": -13
					},
					"step2": {
						"eltname": "lv0-farm-2.png",
						"shifty": 10,
						"shiftx": -13
					},
					"step3": {
						"eltname": "lv0-farm-3.png",
						"shifty": 10,
						"shiftx": -13
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constants": {
				"work-output-amt": 5
			}			
		},
		"workplace": {
			"jobs": 1
		}
	}, {
		"name": "bldg-work-lv0-farm-wheat",
		"parent": "bldg-work-lv0-farm",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-farm-wheat.png",
						"frames": 3,
						"fps": 0
					},
					"growing": {
						"eltname": "re-farm-wheat.png",
						"frames": 3,
						"fps": 0.05
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-output-amt": 7
			},
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 1,
					"title": "upgrade.thresher.title",
					"desc": "upgrade.thresher.desc",
					"icon": "icon-wheat.png",
					"buyres": "cash",
					"buyamt": 500
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.foreman.title",
					"desc": "upgrade.foreman.desc",
					"icon": "icon-workers.png",
					"buyres": "lumber",
					"buyamt": 150
				}
			},
			"rules": {
				"doWork": {
					"outputs": [ "unit work-output-amt wheat" ],
					"failedChecks": [
						"_ a-play-frame-range name default"
					],
					"success": [
						"_ a-play-frame-range name growing",
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource wheat",
						"_ a-spawn-worker npc npc-farmer action farm days 7 dx 1.1 dy 0.4",
						"_ a-play-sound name farmwork count 2 channel farming",
						"_ a-feedback-message key sim.harvested resource wheat days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "wheat" }
					],
					"inputs": [ "unit work-output-amt wheat" ],
					"outputs": [ "player work-output-amt wheat" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource wheat days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "food",
			"price": 400
		},
		"workplace": {
			"jobs": 4,
			"wages": 20,
			"prods": [ { "output": "wheat" } ]
		}
	}, {
		"name": "bldg-work-lv0-orchard",
		"parent": "bldg-work-lv0-farm",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-farm-orchard.png",
						"frames": 3,
						"fps": 0,
						"shifty": 10,
						"shiftx": -11
					},
					"growing": {
						"eltname": "re-farm-orchard.png",
						"frames": 3,
						"fps": 0.05,
						"shifty": 10,
						"shiftx": -11
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constants": {
				"work-output-amt": 7
			},
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 1,
					"title": "upgrade.coldstorage.title",
					"desc": "upgrade.coldstorage.desc",
					"icon": "icon-fruit.png",
					"buyres": "stone",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.foreman.title",
					"desc": "upgrade.foreman.desc",
					"icon": "icon-workers.png",
					"buyres": "lumber",
					"buyamt": 150
				}
			},
			"rules": {
				"doWork": {
					"outputs": [ "unit work-output-amt fruit" ],
					"failedChecks": [
						"_ a-play-frame-range name default" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource fruit",
						"_ a-play-frame-range name growing",
						"_ a-spawn-worker npc npc-farmer action farm days 7 dx 0.9 dy 0.3",
						"_ a-play-sound name farmwork count 2 channel farming",
						"_ a-feedback-message key sim.harvested resource fruit days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "fruit" }
					],
					"inputs": [ "unit work-output-amt fruit" ],
					"outputs": [ "player work-output-amt fruit" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource fruit days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "food",
			"price": 500
		},
		"workplace": {
			"jobs": 4,
			"wages": 20,
			"prods": [ { "output": "fruit" } ]
		}
	}, {
		"name": "bldg-work-lv0-hunting-camp",
		"parent": "bldg-work-lv0",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-camp-hunting.png",
						"shiftx": -8,
						"shifty": 17
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.traps.title",
					"desc": "upgrade.traps.desc",
					"icon": "icon-iron.png",
					"buyres": "iron",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.scout.title",
					"desc": "upgrade.scout.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 500
				}
			},
			"constants": {
				"work-output-amt": 4
			},
			"rules": {
				"doWork": {
					"frequency": "every work-delay days",
					"outputs": [ "unit work-output-amt meat" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource meat",
						"_ a-spawn-worker npc npc-farmer action skin days 7 dx 0.75 dy 0.25",
						"_ a-feedback-message key sim.collected resource meat days 4 log false"
					]
				},
				"doWork2": {
					"frequency": "every work-delay days",
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					],
					"outputs": [ "unit work-output-amt leather" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource leather",
						"_ a-feedback-message key sim.collected resource leather days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "meat" }
					],
					"inputs": [ "unit work-output-amt meat" ],
					"outputs": [ "player work-output-amt meat" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource meat days 4 log false"
					]
				},
				"deliverWork2": {
					"priority": 5,
					"frequency": "every work-delay days",
					"inputs": [ "unit work-output-amt leather" ],
					"outputs": [ "player work-output-amt leather" ],
					"success": [
						"_ a-feedback-message key sim.delivered resource leather days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "food",
			"price": 300
		},
		"workplace": {
			"jobs": 2,
			"wages": 15,
			"prods": [ { "output": "meat" }, { "output": "leather" } ]
		}
	}, {
		"name": "bldg-work-lv0-ranch",
		"parent": "bldg-work-lv0-farm",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-farm-ranch.png",
						"shifty": 19,
						"shiftx": -10
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.expandedpens.title",
					"desc": "upgrade.expandedpens.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.foreman.title",
					"desc": "upgrade.foreman.desc",
					"icon": "icon-workers.png",
					"buyres": "lumber",
					"buyamt": 150
				}
			},
			"constants": {
				"work-output-amt": 6
			},
			"rules": {
				"doWork": {
					"outputs": [ "unit work-output-amt meat", "unit work-output-amt leather", "unit work-output-amt cheese" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource meat",
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource leather",
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource cheese",
						"_ a-spawn-worker npc npc-farmer action ranch days 7 dx 1.25 dy 0.38",
						"_ a-spawn-worker npc npc-farmer action cow days 7 dx 0.5 dy 0.65",
						"_ a-play-sound name cows channel animals",
						"_ a-feedback-message key sim.collected.resources resource meat days 4 log false"
					]
				},
				"deliverWork": {
					"priority": 5,
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "meat" }
					],
					"inputs": [ "unit work-output-amt meat" ],
					"outputs": [ "player work-output-amt meat" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource meat days 4 log false"
					]
				},
				"deliverWork2": {
					"priority": 5,
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "leather" }
					],
					"inputs": [ "unit work-output-amt leather" ],
					"outputs": [ "player work-output-amt leather" ],
					"success": [
						"_ a-feedback-message key sim.delivered resource leather days 4 log false"
					]
				},
				"deliverWork3": {
					"priority": 5,
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "cheese" }
					],
					"inputs": [ "unit work-output-amt cheese" ],
					"outputs": [ "player work-output-amt cheese" ],
					"success": [
						"_ a-feedback-message key sim.delivered resource cheese days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "food",
			"price": 1000
		},
		"workplace": {
			"jobs": 10,
			"wages": 100,
			"prods": [ { "output": "meat" }, { "output": "cheese" }, { "output": "leather" } ]
		}
	}, {
		"name": "bldg-work-lv0-logging-camp",
		"parent": "bldg-work-lv0",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-camp-logging.png",
						"shifty": 20,
						"shiftx": 0
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 3,
					"title": "upgrade.forestroads.title",
					"desc": "upgrade.forestroads.desc",
					"icon": "icon-pickaxes.png",
					"buyres": "pickaxes",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.forester.title",
					"desc": "upgrade.forester.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 500
				}
			},
			"constants": {
				"work-output-amt": 20
			},
			"rules": {
				"doWork": {
					"outputs": [ "unit work-output-amt lumber" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource lumber",
						"_ a-spawn-worker npc npc-farmer action chop days 7 dx 0.6 dy 0.6",
						"_ a-play-sound name woodchop count 5 channel industry",
						"_ a-feedback-message key sim.harvested resource lumber days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "lumber" }
					],
					"inputs": [ "unit work-output-amt lumber" ],
					"outputs": [ "player work-output-amt lumber" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource lumber days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"price": 950
		},
		"workplace": {
			"jobs": 8,
			"wages": 20,
			"prods": [ { "output": "lumber" } ]
		}
	}, {
		"name": "bldg-work-lv0-gold-panning",
		"parent": "bldg-work-lv0",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-panning.png",
						"shiftx": 0,
						"shifty": 0
					}
				}
			}
		},
		"placement": {
			"size": { "x": 1, "y": 1 },
			"blockedBy": 6,
			"requires": 8,
			"requiredResource": "gold-quartz"
		},
		"selection": {
			"overlay": "gold-quartz"
		},
		"sim": {
			"constants": {
				"work-output-amt": 2
			},
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 1,
					"title": "upgrade.holdingpond.title",
					"desc": "upgrade.holdingpond.desc",
					"icon": "icon-lumber.png",
					"buyres": "lumber",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expandeddock.title",
					"desc": "upgrade.expandeddock.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"noResources": {
					"frequency": "every 7 days",
					"checks": [ "map gold-quartz <= 0" ],
					"success": [
						"_ a-drain-unit resource gold-quartz",
						"_ a-feedback-message key sim.noresources.mine resource gold-quartz days 7"
					]
				},
				"doWork": {
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						"map gold-quartz > 0"
					],
					"outputs": [ "unit work-output-amt gold-quartz" ],
					"success": [
						"_ a-consume-map-resources res gold-quartz amount 2",
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource gold-quartz",
						"_ a-spawn-worker npc npc-panner days 7 dx 0.2 dy 0.17",
						"_ a-play-sound name panning count 6 channel water",
						"_ a-feedback-message key sim.collected resource gold-quartz days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold-quartz" }
					],
					"inputs": [ "unit work-output-amt gold-quartz" ],
					"outputs": [ "player work-output-amt gold-quartz" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource gold-quartz days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"price": 300,
			"reqs": [
				{
					"_type": "somasim.game.store::ScenarioLimitingStoreRequirement",
					"scenario": "scenario-ep1-1",
					"day": 150
				}
			]
		},
		"workplace": {
			"jobs": 4,
			"wages": 50,
			"prods": [ { "output": "gold-quartz" } ]
		}
	}, {
		"name": "bldg-work-lv0-quarry",
		"parent": "bldg-work-lv0",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-quarry-stone.png",
						"shifty": 15
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constants": {
				"work-output-amt": 7
			},
			"constmods": {
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.advancedtools.title",
					"desc": "upgrade.advancedtools.desc",
					"icon": "icon-iron.png",
					"buyres": "iron",
					"buyamt": 100
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.steamshovel.title",
					"desc": "upgrade.steamshovel.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"doWork": {
					"outputs": [ "unit work-output-amt stone" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource stone",
						"_ a-spawn-worker npc npc-miner days 7 dx 0.5 dy 0.4",
						"_ a-play-sound name quarry count 5 channel earth",
						"_ a-feedback-message key sim.mined resource stone days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "stone" }
					],
					"inputs": [ "unit work-output-amt stone" ],
					"outputs": [ "player work-output-amt stone" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource stone days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"price": 500
		},
		"workplace": {
			"jobs": 4,
			"wages": 50,
			"prods": [ { "output": "stone" } ]
		}
	





	}, {
		"_comment": "oooooooooooooooooooooooooooooooo WORKPLACES L 1 oooooooooooooooooooooooooooooooooooooooooooo",
		"name": "bldg-work-lv1",
		"parent": "bldg-work",
		"sim": {
			"constants": {
				"work-output-amt": 3,
				"work-input-amt": 3
			},
			"rules": {
				"doWork": {
					"frequency": "every 1 days"
				},
				"bringMaterials": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ 
						"unit workers > 0", 
						"unit grapes < 0",
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "grapes" }
					],
					"failedInputs": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.fail.materials days 1"
					],
					"success": [
						"_ a-problem type inputs state false"
					]
				}
			}
		}
	}, {
		"name": "bldg-work-lv1-distillery",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-1-distillery.png",
						"shifty": 5,
						"shiftx": -5
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-output-amt": 10,
				"work-input-amt": 6
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.biggerbarrels.title",
					"desc": "upgrade.biggerbarrels.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit wheat < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "whiskey" } ],
					"inputs": [ "player work-input-amt wheat" ],
					"outputs": [ "unit work-input-amt wheat" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"bringMaterials2": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit fruit < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "brandy" } ],
					"inputs": [ "player work-input-amt fruit" ],
					"outputs": [ "unit work-input-amt fruit" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"failedMaterials": {
					"frequency": "every 1 days",
					"priority": 1,
					"checks": [ 
						"unit workers > 0", 
						"unit fruit < work-input-amt", 
						"unit wheat < work-input-amt",
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "whiskey" },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "brandy" }
					],
					"failedChecks": [
						"_ a-problem type inputs state false",
						"_ a-feedback-message key sim.fail.materials days 1 show false"
					],
					"success": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.fail.materials days 1 show true"
					]
				},
				"doWork": {
					"frequency": "every work-delay days",
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					],
					"inputs": [ "unit work-input-amt wheat" ],
					"outputs": [ "unit work-output-amt whiskey" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource whiskey",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource wheat",
						"_ a-spawn-patrol npc npc-trader whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name crowd2 channel biz",
						"_ a-feedback-message key sim.made resource whiskey days 4 log false"
					]
				},
				"doWork2": {
					"frequency": "every work-delay days",
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					],
					"inputs": [ "unit work-input-amt fruit" ],
					"outputs": [ "unit work-output-amt brandy" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource brandy",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource fruit",
						"_ a-spawn-patrol npc npc-trader whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name crowd1 channel biz",
						"_ a-feedback-message key sim.made resource brandy days 4 log false"
					]
				},
				"deliverWork": {
					"priority": 5,
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "whiskey" }
					],
					"inputs": [ "unit work-output-amt whiskey" ],
					"outputs": [ "player work-output-amt whiskey" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-trader to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource whiskey days 4 log false"
					]
				},
				"deliverWork2": {
					"priority": 5,
					"frequency": "every 1 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "brandy" }
					],
					"inputs": [ "unit work-output-amt brandy" ],
					"outputs": [ "player work-output-amt brandy" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-trader to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource brandy days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "food",
			"price": 1000
		},
		"workplace": {
			"jobs": 5,
			"wages": 50,
			"prods": [ { "inputs": [ "wheat" ], "output": "whiskey" }, { "inputs": [ "fruit" ], "output": "brandy" } ]
		}
	}, {
		"name": "bldg-work-lv1-stampmill-silver",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-2-stamp-mill-silver.png",
						"shiftx": 0,
						"shifty": 10
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constants": {
				"work-output-amt": 5,
				"work-input-amt-qs": 2,
				"work-input-amt-coal": 5, 
				"work-input-amt-ore": 10
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 1,
					"title": "upgrade.steampower.title",
					"desc": "upgrade.stampsteam.desc",
					"icon": "icon-stone-bricks.png",
					"buyres": "stone-bricks",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit quicksilver < work-input-amt-qs", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver" } ],
					"inputs": [ "player work-input-amt-qs quicksilver" ],
					"outputs": [ "unit work-input-amt-qs quicksilver" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"bringMaterials2": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit silver-ore < work-input-amt-ore", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver" } ],
					"inputs": [ "player work-input-amt-ore silver-ore" ],
					"outputs": [ "unit work-input-amt-ore silver-ore" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"bringMaterials3": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit coal < work-input-amt-coal", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver" } ],
					"inputs": [ "player work-input-amt-coal coal" ],
					"outputs": [ "unit work-input-amt-coal coal" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"failedMaterials": {
					"frequency": "every 1 days",
					"priority": 1,
					"checks": [ 
						"unit workers > 0", 
						"unit silver-ore < work-input-amt-ore", 
						"unit quicksilver < work-input-amt-qs",
						"unit coal < work-input-amt-coal",
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver" }
					],
					"failedChecks": [
						"_ a-problem type inputs state false",
						"_ a-feedback-message key sim.fail.materials days 1 show false"
					],
					"success": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.fail.materials days 1 show true"
					]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt-qs quicksilver", "unit work-input-amt-ore silver-ore", "unit work-input-amt-coal coal" ],
					"outputs": [ "unit work-output-amt silver" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource silver",
						"_ a-completion-timer-start length work-delay from work-input-amt-ore to 0 resource silver-ore",
						"_ a-completion-timer-start length work-delay from work-input-amt-qs to 0 resource quicksilver",
						"_ a-completion-timer-start length work-delay from work-input-amt-coal to 0 resource coal",
						"_ a-spawn-patrol npc npc-trader whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name crowd2 channel biz",
						"_ a-feedback-message key sim.made resource silver days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver" }
					],
					"inputs": [ "unit work-output-amt silver" ],
					"outputs": [ "player work-output-amt silver" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-trader to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource silver days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "stores",
			"show": false,
			"price": 1500
		},
		"workplace": {
			"jobs": 10,
			"wages": 50,
			"prods": [ { 
				"inputs": [ "silver-ore", "quicksilver", "coal" ], 
				"inputamtconsts": [ "work-input-amt-ore", "work-input-amt-qs", "work-input-amt-coal" ],
				"output": "silver" } 
			]
		}
	}, {
		"name": "bldg-work-lv1-stampmill-gold",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-2-stamp-mill-gold.png",
						"shiftx": -10,
						"shifty": 0
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constants": {
				"work-output-amt": 3,
				"work-input-amt-qs": 2,
				"work-input-amt-coal": 4, 
				"work-input-amt-quartz": 8
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 1,
					"title": "upgrade.steampower.title",
					"desc": "upgrade.stampsteam.desc",
					"icon": "icon-stone-bricks.png",
					"buyres": "stone-bricks",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit quicksilver < work-input-amt-qs", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold" } ],
					"inputs": [ "player work-input-amt-qs quicksilver" ],
					"outputs": [ "unit work-input-amt-qs quicksilver" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"bringMaterials2": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit gold-quartz < work-input-amt-quartz", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold" } ],
					"inputs": [ "player work-input-amt-quartz gold-quartz" ],
					"outputs": [ "unit work-input-amt-quartz gold-quartz" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"bringMaterials3": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit coal < work-input-amt-coal", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold" } ],
					"inputs": [ "player work-input-amt-coal coal" ],
					"outputs": [ "unit work-input-amt-coal coal" ],
					"failedInputs": [ ],
					"success": [ ]
				},
				"failedMaterials": {
					"frequency": "every 1 days",
					"priority": 1,
					"checks": [ 
						"unit workers > 0", 
						"unit gold-quartz < work-input-amt-quartz", 
						"unit quicksilver < work-input-amt-qs", 
						"unit coal < work-input-amt-coal",
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold" }
					],
					"failedChecks": [
						"_ a-problem type inputs state false",
						"_ a-feedback-message key sim.fail.materials days 1 show false"
					],
					"success": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.fail.materials days 1 show true"
					]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt-qs quicksilver", "unit work-input-amt-quartz gold-quartz", "unit work-input-amt-coal coal" ],
					"outputs": [ "unit work-output-amt gold" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource gold",
						"_ a-completion-timer-start length work-delay from work-input-amt-quartz to 0 resource gold-quartz",
						"_ a-completion-timer-start length work-delay from work-input-amt-coal to 0 resource coal",
						"_ a-completion-timer-start length work-delay from work-input-amt-qs to 0 resource quicksilver",
						"_ a-spawn-patrol npc npc-trader whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name crowd2 channel biz",
						"_ a-feedback-message key sim.made resource gold days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold" }
					],
					"inputs": [ "unit work-output-amt gold" ],
					"outputs": [ "player work-output-amt gold" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-trader to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource gold days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "stores",
			"show": false,
			"price": 1500
		},
		"workplace": {
			"jobs": 10,
			"wages": 50,
			"prods": [ { 
				"inputs": [ "gold-quartz", "quicksilver", "coal" ], 
				"inputamtconsts": [ "work-input-amt-quartz", "work-input-amt-qs", "work-input-amt-coal" ],
				"output": "gold" } 
			]		}
	},	{
		"name": "bldg-work-lv1-baker",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-1-baker.png",
						"shiftx": -8
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-output-amt": 10,
				"work-input-amt": 6
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 1,
					"title": "upgrade.expandedovens.title",
					"desc": "upgrade.expandedovens.desc",
					"icon": "icon-stone.png",
					"buyres": "stone",
					"buyamt": 100
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit wheat < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "bread" } ],
					"inputs": [ "player work-input-amt wheat" ],
					"outputs": [ "unit work-input-amt wheat" ]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt wheat" ],
					"outputs": [ "unit work-output-amt bread" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource bread",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource wheat",
						"_ a-spawn-patrol npc npc-trader whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name crowd1 channel biz",
						"_ a-feedback-message key sim.made resource bread days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "bread" }
					],
					"inputs": [ "unit work-output-amt bread" ],
					"outputs": [ "player work-output-amt bread" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-trader to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource bread days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "food",
			"price": 300
		},
		"workplace": {
			"jobs": 4,
			"wages": 50,
			"prods": [ { "inputs": [ "wheat" ], "output": "bread" } ]
		}
	}, {
		"name": "bldg-work-lv1-sawmill",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-1-sawmill.png",
						"shifty": 3
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-output-amt": 10,
				"work-input-amt": 6
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 3,
					"title": "upgrade.steampower.title",
					"desc": "upgrade.steampower.desc",
					"icon": "icon-stone-bricks.png",
					"buyres": "stone-bricks",
					"buyamt": 150
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit lumber < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "boards" } ],
					"inputs": [ "player work-input-amt lumber" ],
					"outputs": [ "unit work-input-amt lumber" ]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt lumber" ],
					"outputs": [ "unit work-output-amt boards" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource boards",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource lumber",
						"_ a-spawn-patrol npc npc-shopkeep whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name sawing channel industry",
						"_ a-feedback-message key sim.made resource boards days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "boards" }
					],
					"inputs": [ "unit work-output-amt boards" ],
					"outputs": [ "player work-output-amt boards" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-shopkeep to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource boards days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "stores",
			"price": 750
		},
		"workplace": {
			"jobs": 5,
			"wages": 50,
			"prods": [ { "inputs": [ "lumber" ], "output": "boards" } ]
		}
	}, {
		"name": "bldg-work-lv1-stonemason",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-1-stonemason.png",
						"shiftx": -10,
						"shifty": 3
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-output-amt": 7
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.advancedtools.title",
					"desc": "upgrade.advancedtools.desc",
					"icon": "icon-iron.png",
					"buyres": "iron",
					"buyamt": 100
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit stone < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "stone-bricks" } ],
					"inputs": [ "player work-input-amt stone" ],
					"outputs": [ "unit work-input-amt stone" ]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt stone" ],
					"outputs": [ "unit work-output-amt stone-bricks" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource stone-bricks",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource stone",
						"_ a-spawn-patrol npc npc-shopkeep whenidle sell repeat 4 then return radius 1",
						"_ a-play-sound name quarry channel industry",
						"_ a-feedback-message key sim.made resource stone-bricks days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "stone-bricks" }
					],
					"inputs": [ "unit work-output-amt stone-bricks" ],
					"outputs": [ "player work-output-amt stone-bricks" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-shopkeep to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource stone-bricks days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "stores",
			"price": 750
		},
		"workplace": {
			"jobs": 6,
			"wages": 50,
			"prods": [ { "inputs": [ "stone" ], "output": "stone-bricks" } ]
		}
	},{
		"name": "bldg-work-lv1-smelter",
		"parent": "bldg-work-lv1",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-1-smelter.png",
						"shiftx": -7,
						"shifty": -3
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-output-amt": 10,
				"work-input-amt": 10
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.furnace.title",
					"desc": "upgrade.furnace.desc",
					"icon": "icon-stone-bricks.png",
					"buyres": "stone-bricks",
					"buyamt": 75
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit iron-ore < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "iron" } ],
					"inputs": [ "player work-input-amt iron-ore" ],
					"outputs": [ "unit work-input-amt iron-ore" ]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt iron-ore" ],
					"outputs": [ "unit work-output-amt iron" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource iron",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource iron-ore",
						"_ a-spawn-worker npc npc-shopkeep action smith days 7 dx 0.3 dy 0",
						"_ a-play-sound name smithing count 2 channel industry",
						"_ a-feedback-message key sim.smelted resource iron days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "iron" }
					],
					"inputs": [ "unit work-output-amt iron" ],
					"outputs": [ "player work-output-amt iron" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-shopkeep to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource iron days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "stores",
			"price": 950,
			"reqs": [
				{
					"_type": "somasim.game.store::ScenarioLimitingStoreRequirement",
					"scenario": "scenario-7",
					"day": 7
				}
			]
		},
		"workplace": {
			"jobs": 6,
			"wages": 50,
			"prods": [ { "inputs": [ "iron-ore" ],  "output": "iron" } ]
		}






	}, {
		"_comment": "oooooooooooooooooooooooooooooooo WORKPLACES L 2 oooooooooooooooooooooooooooooooooooooooooooo",
		"name": "bldg-work-lv2",
		"parent": "bldg-work",
		"sim": {
			"constants": {
				"work-output-amt": 3,
				"work-input-amt": 3
			},
			"rules": {
				"doWork": {
					"frequency": "every 1 days"
				},
				"bringMaterials": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit grapes < 0", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "grapes" } ],
					"failedInputs": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.fail.materials days 1"
					],
					"success": [
						"_ a-problem type inputs state false"
					]
				}
			}					
		}	
	}, {
		"name": "bldg-work-lv2-blacksmith",
		"parent": "bldg-work-lv2",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-2-smith.png",
						"shiftx": -5
					}
				}
			}
		},
		"sim": {
			"constants": {
				"work-input-amt": 5,
				"work-output-amt": 5
			},
			"constmods": {	
				"mod1": {
					"constant": "work-output-amt",
					"type": "add",
					"value": 2,
					"title": "upgrade.furnace.title",
					"desc": "upgrade.furnace.desc",
					"icon": "icon-stone-bricks.png",
					"buyres": "stone-bricks",
					"buyamt": 75
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.expand.title",
					"desc": "upgrade.expand.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				}
			},
			"rules": {
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit iron < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "pickaxes" } ],
					"inputs": [ "player work-input-amt iron" ],
					"outputs": [ "unit work-input-amt iron" ]
				},
				"doWork": {
					"inputs": [ "unit work-input-amt iron" ],
					"outputs": [ "unit work-output-amt pickaxes" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource pickaxes",
						"_ a-completion-timer-start length work-delay from work-input-amt to 0 resource iron",
						"_ a-spawn-worker npc npc-shopkeep action smith days 7 dx 0.3 dy 0",
						"_ a-play-sound name smithing count 2 channel industry",
						"_ a-feedback-message key sim.made resource pickaxes days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "pickaxes" }
					],
					"inputs": [ "unit work-output-amt pickaxes" ],
					"outputs": [ "player work-output-amt pickaxes" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-shopkeep to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource pickaxes days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "stores",
			"price": 1000,
			"reqs": [
				{
					"_type": "somasim.game.store::ScenarioLimitingStoreRequirement",
					"scenario": "scenario-7",
					"day": 7
				}
			]
		},
		"workplace": {
			"jobs": 6,
			"wages": 100,
			"prods": [ { "inputs": [ "iron" ], "output": "pickaxes" } ]
		}







	}, {
		"_comment": "oooooooooooooooooooooooooooooooo WORKPLACES L 3 oooooooooooooooooooooooooooooooooooooooooooo",
		"name": "bldg-work-lv3",
		"parent": "bldg-work",
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"rules": {
				"doWork": {
					"frequency": "every 1 days"
				},
				"bringMaterials": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ "unit workers > 0", "unit grapes < 0" ],
					"failedInputs": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.fail.materials days 1"
					],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false",
						"_ a-problem type inputs state false"
					]
				}
			}					
		}
	}, {
		"name": "bldg-work-lv3-mine",
		"parent": "bldg-work-lv3",
		"sim": {
			"constants": {
				"work-input-amt": 2,
				"work-output-amt": 8
			},
			"rules": {
				"bringMaterials": {
					"frequency": "every 1 days",
					"failedInputs": [
						"_ a-problem type inputs state true",
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes days 1"
					],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false",
						"_ a-spawn-walker npc npc-miner from bldg-trade-store then return",
						"_ a-problem type inputs state false"
					]
				}
			}					
		}	
	}, {
		"name": "bldg-work-lv3-gold-mine",
		"parent": "bldg-work-lv3-mine",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-gold.png",
						"shiftx": -8,
						"shifty": 8
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.mine.desc",
			"descfail": "multistage.mine.fail",
			"output": "gold-quartz",
			"repeatlast": false,
			"stages": [{
				"requirements": { "boards": 150, "stone": 100, "iron": 50, "steel-cable": 20 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.mine.completed.default"
			}, {
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 15 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 20 },
				"rewardOutputMultiplier": 1.5,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 25 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 30 },
				"rewardOutputMultiplier": 0.75,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 35 },
				"rewardOutputMultiplier": 0.5,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 40 },
				"rewardOutputMultiplier": 0.25,
				"successmsg": "multistage.mine.completed.smaller"
			}],
			"clearsMessages": [ "sim.noresources.mine" ],
			"disasters": {
				"entries": [{ 
					"intromsg": "multistage.disaster-a.intromsg",
					"shortinfo": "multistage.disaster-a.shortinfo",
					"successmsg": "multistage.disaster-a.successmsg",
					"requirements": { "lumber": 100 }
				}, {
					"intromsg": "multistage.disaster-b.intromsg",
					"shortinfo": "multistage.disaster-b.shortinfo",
					"successmsg": "multistage.disaster-b.successmsg",
					"requirements": { "pickaxes": 25 }
				}],
				"probinitial": 0.5,
				"probincrease": 0.5
			}
		},
		"placement": {
			"requiredResource": "gold-quartz"
		},
		"selection": {
			"overlay": "gold-quartz"
		},
		"sim": {
			"constmods": {
				"mod1": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.steamshovel.title",
					"desc": "upgrade.steamshovel.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.geologist.title",
					"desc": "upgrade.geologist.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				}
			},
			"rules": {
				"noResources": {
					"frequency": "every 7 days",
					"checks": [ "map gold-quartz <= 0" ],
					"success": [
						"_ a-problem type ep1-minedry state true",
						"_ a-drain-unit resource gold-quartz",
						"_ a-feedback-message key sim.noresources.mine resource gold-quartz days 7"
					]
				},
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit pickaxes < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold-quartz" } ],
					"inputs": [ "player work-input-amt pickaxes" ],
					"outputs": [ "unit work-input-amt pickaxes" ]
				},
				"noPickaxes": {
					"frequency": "every 7 days",
					"checks": [ "unit pickaxes >= 1" ],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false"
					],
					"failedChecks": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes days 7 log false"
					]
				},
				"checkDisaster": {
					"frequency": "every 2 days",
					"checks": [
						"unit workers > 0",
						{ "_type": "somasim.pandora.checks::CheckMultiStageDisaster", "expected": true }
					],
					"success": [
						"_ a-problem type ep1-minecollapse state true"
					],
					"failedChecks": [
						"_ a-problem type ep1-minecollapse state false"
					]
				},
				"doWork": {
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckMultiStageDisaster", "expected": false },
						"map gold-quartz > 0" 
					],
					"inputs": [ "unit work-input-amt pickaxes" ],
					"outputs": [ "unit work-output-amt gold-quartz" ],
					"success": [
						"_ a-problem type ep1-minedry state false",
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource gold-quartz",
						"_ a-spawn-worker npc npc-miner days 7 dx 0.9 dy 0.2",
						"_ a-consume-map-resources res gold-quartz amount 3",
						"_ a-play-sound name minework count 3 channel earth",
						"_ a-feedback-message key sim.mined resource gold-quartz days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "gold-quartz" }
					],
					"inputs": [ "unit work-output-amt gold-quartz" ],
					"outputs": [ "player work-output-amt gold-quartz" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource gold-quartz days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"show": false,
			"price": 2000
		},
		"workplace": {
			"jobs": 20,
			"wages": 200,
			"prods": [ { "inputs": [ "pickaxes" ], "output": "gold-quartz" } ]
		}
	}, {
		"name": "bldg-work-lv3-silver-mine",
		"parent": "bldg-work-lv3-mine",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-silver.png",
						"shifty": 10,
						"shiftx": 5
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.mine.desc",
			"descfail": "multistage.mine.fail",
			"output": "silver-ore",
			"repeatlast": true,
			"stages": [{
				"requirements": { "boards": 100, "stone": 100, "iron": 50, "steel-cable": 20 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.mine.completed.default"
			}, {
				"requirements": { "lumber": 100, "stone": 50, "coal": 20, "steel-cable": 15 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone-bricks": 50, "coal": 20, "steel-cable": 20 },
				"rewardOutputMultiplier": 1.5,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "iron": 50, "coal": 20, "steel-cable": 25 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "boards": 100, "stone-bricks": 50, "iron": 20, "steel-cable": 30 },
				"rewardOutputMultiplier": 0.75,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "lumber": 100, "stone-bricks": 50, "coal": 20, "steel-cable": 35 },
				"rewardOutputMultiplier": 0.5,
				"successmsg": "multistage.mine.completed.smaller"
			},{
				"requirements": { "boards": 100, "stone-bricks": 50, "coal": 20, "steel-cable": 40 },
				"rewardOutputMultiplier": 0.25,
				"successmsg": "multistage.mine.completed.smaller"
			}],
			"clearsMessages": [ "sim.noresources.mine" ],
			"disasters": {
				"entries": [{ 
					"intromsg": "multistage.disaster-a.intromsg",
					"shortinfo": "multistage.disaster-a.shortinfo",
					"successmsg": "multistage.disaster-a.successmsg",
					"requirements": { "lumber": 100 }
				}, {
					"intromsg": "multistage.disaster-b.intromsg",
					"shortinfo": "multistage.disaster-b.shortinfo",
					"successmsg": "multistage.disaster-b.successmsg",
					"requirements": { "pickaxes": 25 }
				}],
				"probinitial": 0.25,
				"probincrease": 0.25
			}
		},
		"placement": {
			"requiredResource": "silver-ore"
		},
		"selection": {
			"overlay": "silver-ore"
		},
		"sim": {
			"constmods": {
				"mod1": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.steamshovel.title",
					"desc": "upgrade.steamshovel.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.geologist.title",
					"desc": "upgrade.geologist.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				}
			},
			"rules": {
				"noResources": {
					"frequency": "every 7 days",
					"checks": [ "map silver-ore <= 0" ],
					"success": [
						"_ a-problem type ep1-minedry state true",
						"_ a-drain-unit resource silver-ore",
						"_ a-feedback-message key sim.noresources.mine resource silver-ore days 7"
					]
				},
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit pickaxes < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver-ore" } ],
					"inputs": [ "player work-input-amt pickaxes" ],
					"outputs": [ "unit work-input-amt pickaxes" ]
				},
				"noPickaxes": {
					"frequency": "every 7 days",
					"checks": [ "unit pickaxes >= 1" ],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false"
					],
					"failedChecks": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes days 7 log false"
					]
				},
				"checkDisaster": {
					"frequency": "every 2 days",
					"checks": [
						"unit workers > 0",
						{ "_type": "somasim.pandora.checks::CheckMultiStageDisaster", "expected": true }
					],
					"success": [
						"_ a-problem type ep1-minecollapse state true"
					],
					"failedChecks": [
						"_ a-problem type ep1-minecollapse state false"
					]
				},
				"doWork": {
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckMultiStageDisaster", "expected": false },
						"map silver-ore > 0" 
					],
					"inputs": [ "unit work-input-amt pickaxes" ],
					"outputs": [ "unit work-output-amt silver-ore" ],
					"success": [
						"_ a-problem type ep1-minedry state false",
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource silver-ore",
						"_ a-consume-map-resources res silver-ore amount 3",
						"_ a-spawn-worker npc npc-miner days 7 dx 0.25 dy 0.2",
						"_ a-play-sound name minework count 3 channel earth",
						"_ a-feedback-message key sim.mined resource silver-ore days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "silver-ore" }
					],
					"inputs": [ "unit work-output-amt silver-ore" ],
					"outputs": [ "player work-output-amt silver-ore" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource silver-ore days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"show": false,
			"price": 1000
		},
		"workplace": {
			"jobs": 10,
			"wages": 100,
			"prods": [ { "inputs": [ "pickaxes" ], "output": "silver-ore" } ]
		}
	}, {
		"name": "bldg-work-lv3-iron-mine",
		"parent": "bldg-work-lv3-mine",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-iron.png",
						"shifty": 15,
						"shiftx": -2					
					}
				}
			}
		},
		"placement": {
			"requiredResource": "iron-ore"
		},
		"selection": {
			"overlay": "iron-ore"
		},
		"sim": {
			"constants": {
				"work-output-amt": 10
			},
			"constmods": {
				"mod1": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.steamshovel.title",
					"desc": "upgrade.steamshovel.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.geologist.title",
					"desc": "upgrade.geologist.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				}
			},
			"rules": {
				"noResources": {
					"frequency": "every 7 days",
					"checks": [ "map iron-ore <= 0" ],
					"success": [
						"_ a-drain-unit resource iron-ore",
						"_ a-feedback-message key sim.noresources.mine resource iron-ore days 7"
					]
				},
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit pickaxes < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "iron-ore" } ],
					"inputs": [ "player work-input-amt pickaxes" ],
					"outputs": [ "unit work-input-amt pickaxes" ]
				},
				"noPickaxes": {
					"frequency": "every 7 days",
					"checks": [ "unit pickaxes >= 1" ],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false"
					],
					"failedChecks": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes days 7 log false"
					]
				},
				"doWork": {
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						"map iron-ore > 0" 
					],
					"inputs": [ "unit work-input-amt pickaxes" ],
					"outputs": [ "unit work-output-amt iron-ore" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource iron-ore",
						"_ a-spawn-worker npc npc-miner days 7 dx 0.8 dy 0.3",
						"_ a-consume-map-resources res iron-ore amount 10",
						"_ a-play-sound name minework count 3 channel earth",
						"_ a-feedback-message key sim.mined resource iron-ore days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "iron-ore" }
					],
					"inputs": [ "unit work-output-amt iron-ore" ],
					"outputs": [ "player work-output-amt iron-ore" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource iron-ore days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"price": 1000,
			"reqs": [
				{
					"_type": "somasim.game.store::ScenarioLimitingStoreRequirement",
					"scenario": "scenario-7",
					"day": 7
				}
			]
		},
		"workplace": {
			"jobs": 10,
			"wages": 100,
			"prods": [ { "inputs": [ "pickaxes" ], "output": "iron-ore" } ]
		}


	}, {
		"name": "bldg-work-lv3-quicksilver-mine",
		"parent": "bldg-work-lv3-mine",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-quicksilver.png",
						"shifty": 35,
						"shiftx": -10					
					}
				}
			}
		},
		"placement": {
			"requiredResource": "quicksilver"
		},
		"selection": {
			"overlay": "quicksilver"
		},
		"sim": {
			"constants": {
				"work-output-amt": 4
			},
			"constmods": {
				"mod1": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.steamshovel.title",
					"desc": "upgrade.steamshovel.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.geologist.title",
					"desc": "upgrade.geologist.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				}
			},
			"rules": {
				"noResources": {
					"frequency": "every 7 days",
					"checks": [ "map quicksilver <= 0" ],
					"success": [
						"_ a-drain-unit resource quicksilver",
						"_ a-feedback-message key sim.noresources.mine resource quicksilver days 7"
					]
				},
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit pickaxes < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "quicksilver" } ],
					"inputs": [ "player work-input-amt pickaxes" ],
					"outputs": [ "unit work-input-amt pickaxes" ]
				},
				"noPickaxes": {
					"frequency": "every 7 days",
					"checks": [ "unit pickaxes >= 1" ],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false"
					],
					"failedChecks": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes days 7 log false"
					]
				},
				"doWork": {
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						"map quicksilver > 0" 
					],
					"inputs": [ "unit work-input-amt pickaxes" ],
					"outputs": [ "unit work-output-amt quicksilver" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource quicksilver",
						"_ a-spawn-worker npc npc-miner days 7 dx 0 dy 0",
						"_ a-consume-map-resources res quicksilver amount 10",
						"_ a-play-sound name minework count 3 channel earth",
						"_ a-feedback-message key sim.mined resource quicksilver days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "quicksilver" }
					],
					"inputs": [ "unit work-output-amt quicksilver" ],
					"outputs": [ "player work-output-amt quicksilver" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource quicksilver days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"price": 1000
		},
		"workplace": {
			"jobs": 10,
			"wages": 100,
			"prods": [ { "inputs": [ "pickaxes" ], "output": "quicksilver" } ]
		}
	}, {
		"name": "bldg-work-lv3-coal-mine",
		"parent": "bldg-work-lv3-mine",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-coal.png",
						"shifty": 40,
						"shiftx": 0					
					}
				}
			}
		},
		"placement": {
			"requiredResource": "coal"
		},
		"selection": {
			"overlay": "coal"
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"sim": {
			"constants": {
				"work-output-amt": 10
			},
			"constmods": {
				"mod1": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.steamshovel.title",
					"desc": "upgrade.steamshovel.desc",
					"icon": "icon-workers.png",
					"buyres": "cash",
					"buyamt": 750
				},
				"mod2": {
					"constant": "work-delay",
					"type": "add",
					"value": -1,
					"title": "upgrade.geologist.title",
					"desc": "upgrade.geologist.desc",
					"icon": "icon-boards.png",
					"buyres": "boards",
					"buyamt": 150
				}
			},
			"rules": {
				"noResources": {
					"frequency": "every 7 days",
					"checks": [ "map coal <= 0" ],
					"success": [
						"_ a-drain-unit resource coal",
						"_ a-feedback-message key sim.noresources.mine resource coal days 7"
					]
				},
				"bringMaterials": {
					"checks": [ "unit workers > 0", "unit pickaxes < work-input-amt", { "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "coal" } ],
					"inputs": [ "player work-input-amt pickaxes" ],
					"outputs": [ "unit work-input-amt pickaxes" ]
				},
				"noPickaxes": {
					"frequency": "every 7 days",
					"checks": [ "unit pickaxes >= 1" ],
					"success": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes show false"
					],
					"failedChecks": [
						"_ a-feedback-message key sim.noresources.pickaxes resource pickaxes days 7 log false"
					]
				},
				"doWork": {
					"checks": [ 
						"unit workers > 0", 
						"unit wages > 0",
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						"map coal > 0" 
					],
					"inputs": [ "unit work-input-amt pickaxes" ],
					"outputs": [ "unit work-output-amt coal" ],
					"success": [
						"_ a-completion-timer-start length work-delay from 0 to work-output-amt resource coal",
						"_ a-spawn-worker npc npc-miner days 7 dx 0.45 dy 0.2",
						"_ a-consume-map-resources res coal amount 10",
						"_ a-play-sound name minework count 3 channel earth",
						"_ a-feedback-message key sim.mined resource coal days 4 log false"
					]
				},
				"deliverWork": {
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true },
						{ "_type": "somasim.pandora.checks::CheckProgressTimers", "resname": "coal" }
					],
					"inputs": [ "unit work-output-amt coal" ],
					"outputs": [ "player work-output-amt coal" ],
					"success": [
						"_ a-spawn-walker npc npc-delivery-miner to bldg-trade-store then return",
						"_ a-feedback-message key sim.delivered resource coal days 4 log false"
					]
				}
			}
		},
		"store": {
			"category": "mines",
			"price": 1000
		},
		"workplace": {
			"jobs": 10,
			"wages": 100,
			"prods": [ { "inputs": [ "pickaxes" ], "output": "coal" } ]
		}




	}, {
		"_comment": "------------------------------ CONSTRUCTION --------------------------------------------",
		"name": "bldg-construction",
		"parent": "bldg-work",
		"sim": { },
		"script": { },
		"sim": {
			"rules": {
				"increaseCrime": {
					"frequency": "every 10000 days",
					"outputs": [ "map 0 crime" ]
				},
				"crimeCausesProblems": {
					"frequency": "every 10000 days",
					"success": [
					],
					"failedChecks": [
					]
				}
			}
		}
	}, {
		"name": "bldg-construction-lv1-stampmill-gold",
		"parent": "bldg-construction",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-2-stamp-mill-gold.png",
						"shiftx": -10,
						"shifty": 0
					},
					"construction": {
						"eltname": "rc-2-stamp-mill-gold-uc.png",
						"shiftx": -10,
						"shifty": 0
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.constr.desc",
			"descfail": "multistage.constr.fail",
			"output": "gold",
			"repeatlast": false,
			"stages": [{
				"anim": "construction",
				"requirements": { "boards": 150, "stone-bricks": 100 },
				"rewardOutputMultiplier": 0,
				"successmsg": "multistage.constr.completed.bldg",
				"successactions": [
					"_ a-entity-upgrade next bldg-work-lv1-stampmill-gold"
				]
			}]
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"store": {
			"category": "stores",
			"price": 1500
		},
		"workplace": {
			"jobs": 2,
			"wages": 10,
			"prods": [ ]
		}
	}, {
		"name": "bldg-construction-lv1-stampmill-silver",
		"parent": "bldg-construction",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "rc-2-stamp-mill-silver.png",
						"shiftx": -10,
						"shifty": 0
					},
					"construction": {
						"eltname": "rc-2-stamp-mill-silver-uc.png",
						"shiftx": -10,
						"shifty": 0
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.constr.desc",
			"descfail": "multistage.constr.fail",
			"output": "silver",
			"repeatlast": false,
			"stages": [{
				"anim": "construction",
				"requirements": { "boards": 100, "stone-bricks": 100 },
				"rewardOutputMultiplier": 0,
				"successmsg": "multistage.constr.completed.bldg",
				"successactions": [
					"_ a-entity-upgrade next bldg-work-lv1-stampmill-silver"
				]
			}]
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"store": {
			"category": "stores",
			"price": 1500
		},
		"workplace": {
			"jobs": 2,
			"wages": 10,
			"prods": [ ]
		}
	}, {
		"name": "bldg-construction-lv3-gold-mine",
		"parent": "bldg-construction",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-gold.png",
						"shiftx": -8,
						"shifty": 8
					},
					"construction": {
						"eltname": "re-mine-gold-uc.png",
						"shiftx": -8,
						"shifty": 8
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.constr.desc",
			"descfail": "multistage.constr.fail",
			"output": "gold-quartz",
			"repeatlast": false,
			"stages": [{
				"anim": "construction",
				"requirements": { "boards": 150, "stone": 100, "iron": 50, "steel-cable": 20 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.constr.completed.mine",
				"successactions": [
					"_ a-entity-upgrade next bldg-work-lv3-gold-mine"
				]
			}]
		},
		"placement": {
			"size": { "x": 2, "y": 2 },
			"requiredResource": "gold-quartz"
		},
		"selection": {
			"overlay": "gold-quartz"
		},
		"store": {
			"category": "mines",
			"price": 2000
		},
		"workplace": {
			"jobs": 2,
			"wages": 10,
			"prods": [ ]
		}
	}, {
		"name": "bldg-construction-lv3-silver-mine",
		"parent": "bldg-construction",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "re-mine-silver.png",
						"shiftx": -8,
						"shifty": 8
					},
					"construction": {
						"eltname": "re-mine-silver-uc.png",
						"shiftx": -8,
						"shifty": 8
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.constr.desc",
			"descfail": "multistage.constr.fail",
			"output": "silver-ore",
			"repeatlast": false,
			"stages": [{
				"anim": "construction",
				"requirements": { "boards": 150, "stone": 100, "iron": 50, "steel-cable": 20 },
				"rewardOutputMultiplier": 1,
				"successmsg": "multistage.constr.completed.mine",
				"successactions": [
					"_ a-entity-upgrade next bldg-work-lv3-silver-mine"
				]
			}]
		},
		"placement": {
			"size": { "x": 2, "y": 2 },
			"requiredResource": "silver-ore"
		},
		"selection": {
			"overlay": "silver-ore"
		},
		"store": {
			"category": "mines",
			"price": 1000
		},
		"workplace": {
			"jobs": 2,
			"wages": 10,
			"prods": [ ]
		}
	}, {
		"name": "bldg-construction-project-rail",
		"parent": "bldg-construction",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "VirginiaAndTruckee.png",
						"shiftx": 0,
						"shifty": 0
					},
					"construction-1": {
						"eltname": "VirginiaAndTruckee_1.png",
						"shiftx": 0,
						"shifty": 0
					},
					"construction-2": {
						"eltname": "VirginiaAndTruckee_2.png",
						"shiftx": 0,
						"shifty": 0
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.project.desc.rail",
			"descfail": "multistage.project.fail",
			"output": "gold",
			"repeatlast": false,
			"stages": [{
				"anim": "construction-1",
				"requirements": { "paper": 100, "fabric": 150, "pickaxes": 50 },
				"rewardOutputMultiplier": 0,
				"successmsg": "multistage.project.rail-1"
			}, {
				"anim": "construction-2",
				"requirements": { "lumber": 200, "iron": 100, "bread": 300, "whiskey": 150 },
				"rewardOutputMultiplier": 0,
				"successmsg": "multistage.project.rail-2",
				"successactions": [
					"_ a-entity-upgrade next bldg-map-project-rail"
				]
			}]
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"store": {
			"category": "citybldg",
			"price": 2500
		},
		"workplace": {
			"jobs": 2,
			"wages": 10
		}
	}, {
		"name": "bldg-construction-project-capitol",
		"parent": "bldg-construction",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "NevadaStateCapitol.png",
						"shiftx": 0,
						"shifty": 0
					},
					"construction-1": {
						"eltname": "NevadaStateCapitol_1.png",
						"shiftx": -2,
						"shifty": -13
					},
					"construction-2": {
						"eltname": "NevadaStateCapitol_2.png",
						"shiftx": -10,
						"shifty": -13
					}
				}
			}
		},
		"multistage": {
			"desc": "multistage.project.desc",
			"descfail": "multistage.project.fail",
			"output": "gold",
			"repeatlast": false,
			"stages": [{
				"anim": "construction-1",
				"requirements": { "boards": 400, "stone-bricks": 400, "iron": 150, "steel-cable": 50 },
				"rewardOutputMultiplier": 0,
				"successmsg": "multistage.project.completed-1"
			}, {
				"anim": "construction-2",
				"requirements": { "silver": 50, "paper": 200, "fabric": 300, "furniture": 200  },
				"rewardOutputMultiplier": 0,
				"successmsg": "multistage.project.completed-2",
				"successactions": [
					"_ a-entity-upgrade next bldg-map-project-capitol"
				]
			}]
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"store": {
			"category": "citybldg",
			"price": 1000
		},
		"workplace": {
			"jobs": 2,
			"wages": 10
		}






	}, {
		"_comment": "------------------------------ FIRE ISLAND --------------------------------------------",
		"name": "bldg-fire",
		"parent": "bldg",
		"display": {
			"spriteScale": 1
		},
		"selection": {
			"selectable": false
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 1000000 days",
					"checks": [ "map fire-hazard > 1000" ],
					"outputs": [ "map 0 fire-hazard" ]
				},
				"fireBurnsOut": {
					"frequency": "every 1 days",
					"checks": [ "map fire-hazard > 0.1 max" ],
					"inputs": [ "map 0.1 fire-hazard" ]
				}
			}
		}
	}, {
		"name": "bldg-fire-1-1-raging",
		"parent": "bldg-fire",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "fire-1-1-raging.png",
						"shifty": 10,
						"frames": 4,
						"fps": 15
					}
				}
			}
		},
		"sim": {
			"rules": {
				"finishFire": {
					"frequency": "every 2 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckRandom", "below": 0.2 }
					],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityDelete" }
					]
				}
			}
		}
	}, {
		"name": "bldg-fire-2-2-raging",
		"parent": "bldg-fire",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "fire-2-2-raging.png",
						"shifty": 10,
						"frames": 4,
						"fps": 15
					}
				}
			}
		},
		"sim": {
			"rules": {
				"finishFire": {
					"frequency": "every 2 days",
					"checks": [ 
						{ "_type": "somasim.pandora.checks::CheckRandom", "below": 0.2 }
					],
					"success": [
						{ "_type": "somasim.pandora.actions::AEntityDelete" }
					]
				}
			}
		}
	}, {
		"name": "bldg-fire-done",
		"parent": "bldg",
		"selection": {
			"type": "map",
			"deleteSkipConfirm": true
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 1000000 days",
					"checks": [ "map fire-hazard > 1000" ],
					"outputs": [ "map 0 fire-hazard" ]
				}
			}
		}
	}, {
		"name": "bldg-fire-1-1-done",
		"parent": "bldg-fire-done",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "fire-1-1-done.png",
						"shifty": 10
					}
				}
			},
			"spriteScale": 0.75
		}
	}, {
		"name": "bldg-fire-2-2-done",
		"parent": "bldg-fire-done",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "fire-2-2-done.png",
						"shifty": 10
					}
				}
			},
			"spriteScale": 0.75
		}




	}, {
		"_comment": "------------------------------ MAP RESOURCES --------------------------------------------",
		"name": "bldg-map",
		"parent": "bldg",
		"tags": { 
			"type": "map" 
		},
		"roaduser": {
		},
		"selection": {
			"type": "map"
		},
		"sim": {
			"rules": {
				"checkWorkers": {
					"frequency": "every 1 days",
					"checks": [ 
						"unit workers = 0",
						{ "_type": "somasim.pandora.checks::CheckEntityAge", "olderthan": 3 }
					],
					"failedChecks": [
						"_ a-problem type workers state false",
						"_ a-feedback-message key sim.fail.workers resource workers show false"
					],
					"success": [
						"_ a-completion-timer-clear-all",
						"_ a-problem type workers state true",
						"_ a-feedback-message key sim.fail.workers resource workers show true"
					]
				},
				"payWages": {
					"frequency": "every 1 days",
					"priority": 10,
					"checks": [ 
						"unit wages <= 1", 
						"unit workers > 0",
						{ "_type": "somasim.pandora.checks::CheckCanPayWages" }
					],
					"outputs": [ "unit 7 wages" ],
					"success": [
						"_ a-pay-workplace-wages",
						"_ a-problem type wages state false",
						"_ a-feedback-message key sim.fail.wages resource workers show false"
					]
				},
				"consumeWages": {
					"frequency": "every 1 days",
					"checks": [ "unit workers > 0" ],
					"inputs": [ "unit 1 wages" ],
					"failedInputs": [
						"_ a-completion-timer-clear-all",
						"_ a-problem type wages state true",
						"_ a-feedback-message key sim.fail.wages resource workers show true"
					]
				},
				"checkRoad": {
					"frequency": "every 2 days",
					"checks": [
						{ "_type": "somasim.pandora.checks::CheckHasRoad", "expected": true }
					],
					"success": [
						"_ a-problem type road state false",
						"_ a-feedback-message key sim.fail.road show false"
					],
					"failedChecks": [
						"_ a-problem type road state true",
						"_ a-feedback-message key sim.fail.road show true"
					]
				},

				"consumeMapResource": {
					"frequency": "every 7 days",
					"checks": [ "unit workers > 0" ]
				}
			}
		},
		"workplace": {
		}
	}, {
		"name": "bldg-map-fire",
		"parent": "bldg-map",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "ts-fire.png",
						"shifty": 11,
						"shiftx": -8						
					}
				}
			}
		},
		"selection": {
			"aoeradius": 9,
			"overlay": "fire-hazard"
		},
		"sim": {
			"rules": {
				"consumeMapResource": {
					"success": [
						{ "_type": "somasim.pandora.actions::AChangeResourceInArea", 
							"radius": 9, "res": "fire-hazard", "amount": -1 }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"priority": 20,
			"price": 300
		},
		"workplace": {
			"wages": 10,
			"jobs": 1
		}
	}, {
		"name": "bldg-map-sheriff",
		"parent": "bldg-map",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "ts-sheriff.png",
						"shifty": 8,
						"shiftx": -8
					}
				}
			}
		},
		"selection": {
			"aoeradius": 9,
			"overlay": "crime"
		},
		"sim": {
			"rules": {
				"consumeMapResource": {
					"success": [
						"_ a-change-resource-in-area radius 9 res crime amount -0.4",
						"_ a-spawn-patrol npc npc-sheriff whenidle work repeat 2 then return"
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"priority": 20,
			"price": 300
		},
		"workplace": {
			"wages": 10,
			"jobs": 1
		}
	}, {
		"name": "bldg-map-jail",
		"parent": "bldg-map",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "ts-jail.png",
						"shifty": 8,
						"shiftx": -8
					}
				}
			}
		},
		"selection": {
			"aoeradius": 12,
			"overlay": "crime"
		},
		"sim": {
			"rules": {
				"consumeMapResource": {
					"frequency": "every 3 days",
					"success": [
						"_ a-change-resource-in-area radius 12 res crime amount -1",
						"_ a-spawn-patrol npc npc-sheriff whenidle work repeat 2 then return"
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 500
		},
		"workplace": {
			"wages": 10,
			"jobs": 1
		}
	}, {
		"name": "bldg-map-casino",
		"parent": "bldg-map",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "ts-casino.png",
						"shifty": 8,
						"shiftx": -4
					}
				}
			}
		},
		"selection": {
			"aoeradius": 5,
			"overlay": "boredom"
		},
		"sim": {
			"rules": {
				"consumeMapResource": {
					"success": [
						"_ a-spawn-patrol npc npc-barkeep whenidle work repeat 4 then return radius 1",
						{ "_type": "somasim.pandora.actions::AChangeResourceInArea", 
							"radius": 5, "res": "boredom", "amount": -1 }
					]
				},
				"produceExtraCrime": {
					"frequency": "every 7 days",
					"checks": [ 
						"unit workers > 0",
						{ "_type": "somasim.pandora.checks::CheckScenarioFlag", "name": "disable-crime", "expected": "absent" }
 					],
					"success": [
						{ "_type": "somasim.pandora.actions::AChangeResourceInArea", 
							"radius": 2, "res": "crime", "amount": 0.05 }
					]
				}
			}
		},
		"store": {
			"category": "citybldg",
			"price": 300
		},
		"workplace": {
			"wages": 10,
			"jobs": 1
		}
	}, {
		"name": "bldg-map-project-rail",
		"parent": "bldg-map",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "VirginiaAndTruckee.png",
						"shifty": 0,
						"shiftx": 0
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"selection": {
		},
		"sim": {
		},
		"store": {
			"category": "citybldg",
			"price": 500
		},
		"workplace": {
			"wages": 10,
			"jobs": 2
		}
	}, {
		"name": "bldg-map-project-capitol",
		"parent": "bldg-map",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "NevadaStateCapitol.png",
						"shifty": -5,
						"shiftx": -2
					}
				}
			}
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"selection": {
		},
		"sim": {
		},
		"store": {
			"category": "citybldg",
			"price": 500
		},
		"workplace": {
			"wages": 10,
			"jobs": 2
		}






	}, {
		"_comment": "------------------------------------ OBSTACLES ------------------------------",
		"name": "bldg-obstacle",
		"parent": "bldg",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "fire-2-2-done.png",
						"shifty": 10
					}
				}
			}, 
			"spriteScale": 0.75
		},
		"obstacle": {
		},
		"placement": {
			"size": { "x": 2, "y": 2 }
		},
		"selection": {
			"type": "obstacle"
		},
		"sim": {
		},
		"store": {
			"show": false
		}
	}, {
		"name": "bldg-obstacle-mine-gold",
		"parent": "bldg-obstacle",
		"obstacle": {
			"original": "bldg-work-lv3-gold-mine",
			"resource": "lumber",
			"amount": 150
		}
	}, {
		"name": "bldg-obstacle-mine-silver",
		"parent": "bldg-obstacle",
		"obstacle": {
			"original": "bldg-work-lv3-silver-mine",
			"resource": "lumber",
			"amount": 150
		}
	}, {
		"name": "bldg-obstacle-mine-iron",
		"parent": "bldg-obstacle",
		"obstacle": {
			"original": "bldg-work-lv3-iron-mine",
			"resource": "lumber",
			"amount": 150
		}
	}, {
		"name": "bldg-obstacle-mine-quicksilver",
		"parent": "bldg-obstacle",
		"obstacle": {
			"original": "bldg-work-lv3-quicksilver-mine",
			"resource": "lumber",
			"amount": 150
		}
	}, {
		"name": "bldg-obstacle-mine-coal",
		"parent": "bldg-obstacle",
		"obstacle": {
			"original": "bldg-work-lv3-coal-mine",
			"resource": "lumber",
			"amount": 150
		}

	}, {
		"name": "bldg-obstacle-rock",
		"parent": "bldg-obstacle",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "stencil-rock-1.png",
						"shifty": 20
					},
					"rock2": {
						"eltname": "stencil-rock-2.png",
						"shifty": 20,
						"shiftx": 7
					},
					"rock3": {
						"eltname": "stencil-rock-3.png",
						"shifty": 20
					}
				}
			}, 
			"spriteScale": 1
		},
		"obstacle": {
			"animations": [ "default", "rock2", "rock3" ],
			"resource": "lumber",
			"amount": 20,
			"getresource": "stone",
			"getamount": 10
		},
		"placement": {
			"size": { "x": 1, "y": 1 }
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 1000 days",
					"outputs": [ "map 0 fire-hazard" ]
				},
				"startAFire": {
					"frequency": "every 1000 days",
					"success": [ ]
				}
			}
		}
	}, {
		"name": "bldg-obstacle-boulder",
		"parent": "bldg-obstacle",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "stencil-boulder-1.png"
					},
					"boulder2": {
						"eltname": "stencil-boulder-2.png"
					}
				}
			}, 
			"spriteScale": 1
		},
		"obstacle": {
			"animations": [ "default", "boulder2" ],
			"resource": "pickaxes",
			"amount": 5,
			"getresource": "stone",
			"getamount": 40
		},
		"placement": {
			"size": { "x": 1, "y": 1 }
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"frequency": "every 1000 days",
					"outputs": [ "map 0 fire-hazard" ]
				},
				"startAFire": {
					"frequency": "every 1000 days",
					"success": [ ]
				}
			}
		}
	}, {
		"name": "bldg-obstacle-tree-birch",
		"parent": "bldg-obstacle",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "stencil-tree-birch-1.png"
					},
					"tree2": {
						"eltname": "stencil-tree-birch-2.png"
					},
					"tree3": {
						"eltname": "stencil-tree-birch-3.png"
					}
				}
			}, 
			"spriteScale": 1
		},
		"obstacle": {
			"animations": [ "default", "tree2", "tree3" ],
			"resource": "cash",
			"amount": 50,
			"getresource": "lumber",
			"getamount": 50
		},
		"placement": {
			"size": { "x": 1, "y": 1 }
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"outputs": [ "map 0.01 fire-hazard" ]
				}
			}
		}
	}, {
		"name": "bldg-obstacle-tree-sage",
		"parent": "bldg-obstacle",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "stencil-tree-sage-1.png"
					},
					"tree2": {
						"eltname": "stencil-tree-sage-2.png"
					},
					"tree3": {
						"eltname": "stencil-tree-sage-3.png"
					}
				}
			}, 
			"spriteScale": 1
		},
		"obstacle": {
			"animations": [ "default", "tree2", "tree3" ],
			"resource": "cash",
			"amount": 50,
			"getresource": "lumber",
			"getamount": 50
		},
		"placement": {
			"size": { "x": 1, "y": 1 }
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"outputs": [ "map 0.01 fire-hazard" ]
				}
			}
		}
	}, {
		"name": "bldg-obstacle-tree-dead",
		"parent": "bldg-obstacle",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "stencil-tree-dead-1.png"
					},
					"tree2": {
						"eltname": "stencil-tree-dead-2.png"
					},
					"tree3": {
						"eltname": "stencil-tree-dead-3.png"
					}
				}
			}, 
			"spriteScale": 1
		},
		"obstacle": {
			"animations": [ "default", "tree2", "tree3" ],
			"resource": "cash",
			"amount": 50,
			"getresource": "lumber",
			"getamount": 30
		},
		"placement": {
			"size": { "x": 1, "y": 1 }
		},
		"sim": {
			"rules": {
				"produceFireHazard": {
					"outputs": [ "map 0.02 fire-hazard" ]
				}
			}
		}



	}, {
		"_comment": "------------------------------------ NOTIFS ---------------------------------",
		"name": "notif-base",
		"display": {
			"layer": 3,
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "unknown.png",
						"shifty": 64,
						"frames": 1,
						"fps": 0
					}
				}
			},
			"spriteScale": 0.66
		},
		"placement": {
		},
		"selection": {
			"selectable": false
		},
		"transient": true
	}, {
		"name": "notif-workers",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-workers.png"
					}
				}
			}
		}
	}, {
		"name": "notif-wages",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-wages.png"
					}
				}
			}
		}
	}, {
		"name": "notif-inputs",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-inputs.png"
					}
				}
			}
		}
	}, {
		"name": "notif-food",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-food.png"
					}
				}
			}
		}
	}, {
		"name": "notif-crime",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-crime.png"
					}
				}
			}
		}
	}, {
		"name": "notif-road",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-road.png"
					}
				}
			}
		}
	}, {
		"name": "notif-closed",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-closed.png"
					}
				}
			}
		}
	}, {
		"name": "notif-ep1-minedry",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-ep1-minedry.png"
					}
				}
			}
		}
	}, {
		"name": "notif-ep1-minecollapse",
		"parent": "notif-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "notif-ep1-minecollapse.png"
					}
				}
			}
		}

	}, {
		"name": "notif-aoe",
		"parent": "notif-base",
		"display": {
			"anchorBottom": false,
			"atlas": {
				"asset": "ui",
				"ranges": {
					"default": {
						"eltname": "notif-aoe.png",
						"shifty": 0
					}
				}
			},
			"spriteScale": 1
		}



	}, {
		"_comment": "------------------------------------ PROPS ---------------------------------",
		"name": "prop-base",
		"display": {
			"atlas": {
				"asset": "ubertex",
				"ranges": {
					"default": {
						"eltname": "unknown.png",
						"frames": 1,
						"fps": 0
					}
				}
			},
			"spriteScale": 0.75
		},
		"placement": {
			"collisionMask": 2,
			"blockedBy": 14
		},
		"selection": {
			"type": "map"
		}
	}, {
		"name": "prop-lamp-1",
		"parent": "prop-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "prop-lamp-1.png",
						"shiftx": 20,
						"shifty": 10
					}
				}
			}
		},
		"store": {
			"category": "decos"
		}
	}, {
		"name": "prop-lamp-2",
		"parent": "prop-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "prop-lamp-2.png",
						"shiftx": 20,
						"shifty": 12
					}
				}
			}
		},
		"store": {
			"category": "decos"
		}
	}, {
		"name": "prop-hitching-post",
		"parent": "prop-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "prop-hitching-post.png"
					}
				}
			}
		},
		"store": {
			"category": "decos"
		}
	}, {
		"name": "prop-trough",
		"parent": "prop-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "prop-trough.png"
					}
				}
			}
		},
		"store": {
			"category": "decos"
		}
	}, {
		"name": "prop-skull",
		"parent": "prop-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "prop-skull.png",
						"shifty": 20
					}
				}
			}
		},
		"store": {
			"category": "decos"
		}
	}, {
		"name": "prop-wheel",
		"parent": "prop-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "prop-wheel.png",
						"shifty": 10
					}
				}
			}
		},
		"store": {
			"category": "decos"
		}




	}, {
		"_comment": "------------------------------------ STENCILS ---------------------------------",
		"name": "stencil-base",
		"display": {
			"layer": 1,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "unknown.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"selection": {
			"selectable": false
		},
		"transient": true
	}, {
		"name": "stencil-rock-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-rock-1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-rock-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-rock-2.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-rock-3",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-rock-3.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-boulder-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-boulder-1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-boulder-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-boulder-2.png"
					}
				}
			}
		}

	}, {
		"name": "stencil-tree-birch-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-birch-1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-birch-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-birch-2.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-birch-3",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-birch-3.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-birch-c1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-birch-c1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-birch-c2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-birch-c2.png"
					}
				}
			}
		}

	}, {
		"name": "stencil-tree-sage-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-sage-1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-sage-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-sage-2.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-sage-3",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-sage-3.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-sage-c1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-sage-c1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-sage-c2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-sage-c2.png"
					}
				}
			}
		}

	}, {
		"name": "stencil-tree-dead-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-dead-1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-dead-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-dead-2.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-dead-3",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-dead-3.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-tree-dead-4",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-tree-dead-4.png"
					}
				}
			}
		}

	}, {
		"name": "stencil-grass-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-grass-1.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-grass-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-grass-2.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-grass-3",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-grass-3.png"
					}
				}
			}
		}
	}, {
		"name": "stencil-grass-4",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "stencil-grass-4.png"
					}
				}
			}
		}

	}, {
		"name": "splotch-1",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "splotch-1.png"
					}
				}
			}
		}
	}, {
		"name": "splotch-2",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "splotch-2.png"
					}
				}
			}
		}
	}, {
		"name": "splotch-3",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "splotch-3.png"
					}
				}
			}
		}
	}, {
		"name": "splotch-4",
		"parent": "stencil-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "splotch-4.png"
					}
				}
			}
		}


	}, {
		"name": "mapmarker-base",
		"display": {
			"layer": 1,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "unknown.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"placement": {
		},
		"selection": {
			"selectable": false
		},
		"transient": true

	}, {
		"name": "mapmarker-gold",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-gold.png"
					}
				}
			},
			"spriteScale": 0.55
		}
	}, {
		"name": "mapmarker-silver",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-silver.png",
						"shifty": 3,
						"shiftx": 5
					}
				}
			},
			"spriteScale": 0.55
		}
	}, {
		"name": "mapmarker-iron",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-iron.png",
						"shiftx": 7,
						"shifty": -3					
					}
				}
			},
			"spriteScale": 0.5
		}
	}, {
		"name": "mapmarker-crude",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-oil.png"
					}
				}
			},
			"spriteScale": 0.5
		}

	}, {
		"name": "mapmarker-coal",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-coal.png"
					}
				}
			},
			"spriteScale": 0.5
		}
	}, {
		"name": "mapmarker-quicksilver",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-quicksilver.png"
					}
				}
			},
			"spriteScale": 0.5
		}
	}, {
		"name": "mapmarker-water",
		"parent": "mapmarker-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "resource-water.png"
					}
				}
			},
			"spriteScale": 0.5
		}




	}, {
		"_comment": "------------------------------------ SKYCRITTERS ------------------------------",
		"name": "skycritter-base",
		"display": {
			"layer": 4,
			"atlas": {
				"asset": "ground",
				"ranges": {
					"default": {
						"eltname": "unknown.png",
						"frames": 1,
						"fps": 0
					}
				}
			}
		},
		"placement": { },
		"script": { },
		"selection": {
			"selectable": false
		},
		"transient": true
	}, {
		"name": "skycritter-cloud",
		"parent": "skycritter-base",
		"display": {
			"atlas": {
				"ranges": {
					"default": {
						"eltname": "cloud-5.png"
					},
					"cloud-1": {
						"eltname": "cloud-1.png"
					},
					"cloud-2": {
						"eltname": "cloud-2.png"
					},
					"cloud-3": {
						"eltname": "cloud-3.png"
					},
					"cloud-4": {
						"eltname": "cloud-4.png"
					}
				}
			},
			"spriteScale": 4
		}





	}, {
		"name": "script-runner",
		"script": { 
			"updateDeltaSeconds": 100000
		},
		"sim": { },
		"transient": true


	}]
}