module Base
{

	script LoadCharacterTextures
	{
		LoadTexturePage(characterpieces, Head, Base_Head, Torso, Base_Torso, Legs, Base_Legs); 
		LoadTexturePage(clothingshirts);
		LoadTexturePage(clothingshirts2);
		LoadTexturePage(clothingtrousers);
		LoadTexturePage(clothingshoes);

	}
	
	trigger OnPreCharacterCreation
	{
		call LoadCharacterTextures
	}

	
	trigger OnPreMapLoad
	{
		call LoadCharacterTextures
	}

	item Newspaper
	{
		Type			=			Literature,
		DisplayName		=			Newspaper,
		Icon			=			Newspaper,
		Weight			=			0.1,
		BoredomChange 		=			-10,
		StressChange 		=			-10
	}

	item Magazine
	{
		Type			=			Literature,
		DisplayName		=			Magazine,
		Icon			=			Magazine,
		Weight			=			0.2,
		BoredomChange 		=			-20,
		StressChange 		=			-15
	}

	item Book
	{
		Type			=			Literature,
		DisplayName		=			Book,
		Icon			=			Book,
		Weight			=			0.8,
		BoredomChange 		=			-50,
		StressChange 		=			-40
	}


	item Tissue
	{
		Type			=			Drainable,
		DisplayName		=			Tissue,
		Icon			=			Tissue,
		Weight			=			0.1,
		UseWhileEquipped = 			false,
	}

	item Cupcake
	{
		Type					=			Food,
		DisplayName		=			Cupcake,
		Icon					=			Cupcake,
		Weight				=			1,
		HungerChange 	=			-15
	}

	item Pop
	{
		Type					=			Food,
		DisplayName		=			Pop,
		Icon					=			Pop,
		Weight				=			1,
		HungerChange 	=			-10
	}

	item Pop2
	{
		Type					=			Food,
		DisplayName		=			Pop,
		Icon					=			Pop2,
		Weight				=			1,
		HungerChange 	=			-10
	}

	item Pop3
	{
		Type			=			Food,
		DisplayName		=			Pop,
		Icon			=			Pop3,
		Weight			=			1,
		HungerChange 	=			-10
	}

	item Crisps
	{
		Type			=			Food,
		DisplayName		=			Crisps,
		Icon			=			Crisps,
		Weight			=			0.2,
		HungerChange 	=			-20
	}

	item Crisps2
	{
		Type			=			Food,
		DisplayName		=			Crisps,
		Icon			=			Crisps2,
		Weight			=			0.2,
		HungerChange 	=			-20
	}

	item Crisps3
	{
		Type			=			Food,
		DisplayName		=			Crisps,
		Icon			=			Crisps3,
		Weight			=			0.2,
		HungerChange 	=			-20
	}

	item PotOfSoup
	{
		Type			=			Food,
		DisplayName		=			Pot of Soup,
		Icon			=			PotFull,
		Weight			=			3,
		IsCookable		= 			true,
		MinutesToCook   = 			50,
		MinutesToBurn   = 			100,
		HungerChange 	=			-40,
		ReplaceOnUse	=			Pot
	}

	item Steak
	{
		Type			=			Food,
		DisplayName		=			Steak,
		Icon			=			Steak,
		Weight			=			0.2,
		IsCookable		= 			true,
		MinutesToCook   = 			100,
		MinutesToBurn   = 			150,
		HungerChange 	=			-40,
		DaysFresh 		=			2,
		DaysTotallyRotten = 		4,
		DangerousUncooked = 		true
	}

	item Chicken
	{
		Type			=			Food,
		DisplayName		=			Chicken,
		Icon			=			Chicken,
		Weight			=			0.2,
		IsCookable		= 			true,
		MinutesToCook   = 			30,
		MinutesToBurn   = 			60,
		HungerChange 	=			-40,
		DaysFresh 		=			2,
		DaysTotallyRotten = 		4,
		DangerousUncooked = 		true
	}

	item Salmon
	{
		Type			=			Food,
		DisplayName		=			Salmon,
		Icon			=			Salmon,
		Weight			=			0.2,
		IsCookable		= 			true,
		MinutesToCook   = 			80,
		MinutesToBurn   = 			130,
		HungerChange 	=			-40,
		DaysFresh 		=			2,
		DaysTotallyRotten = 		4,
		DangerousUncooked = 		true
	}


	item Apple
	{
		Type			=			Food,
		DisplayName		=			Apple,
		Icon			=			Apple,
		Weight			=			0.2,
		HungerChange 	=			-30,
		DaysFresh 		=			7,
		DaysTotallyRotten = 		9,
	}

	item Banana
	{
		Type			=			Food,
		DisplayName		=			Apple,
		Icon			=			Apple,
		Weight			=			0.2,
		HungerChange 	=			-30,
		DaysFresh 		=			5,
		DaysTotallyRotten = 		7,
	}

	item Chocolate
	{
		Type			=			Food,
		DisplayName		=			Chocolate,
		Icon			=			Chocolate,
		Weight			=			0.1,
		HungerChange 	=			-10
	}

	item TinnedSoup
	{
		Type			=			Food,
		DisplayName		=			Canned Soup,
		Icon			=			TinCan,
		Weight			=			4,
		HungerChange 	=			-30,
		RequireInHandOrInventory = 	TinOpener
	}

	item Bread
	{
		Type			=			Food,
		DisplayName		=			Bread,
		Icon			=			Bread,
		Weight			=			0.2,
		HungerChange 	=			-40,
		DaysFresh 		=			3,
		DaysTotallyRotten = 		6
	}

	item Carrots
	{
		Type			=			Food,
		DisplayName		=			Carrots,
		Icon			=			Carrots,
		Weight			=			0.2,
		HungerChange 	=			-40,
		DaysFresh 		=			4,
		DaysTotallyRotten = 		7
	}

	item WhiskeyFull
	{
		Type			=			Food,
		DisplayName		=			Whiskey Bottle (full),
		Icon			=			WhiskeyFull,
		Weight			=			4,
		ReplaceOnUse	=			WhiskeyHalf,
		Alcoholic 		=			true
	}

	item WhiskeyHalf
	{
		Type			=			Food,
		DisplayName		=			Whiskey Bottle (half),
		Icon			=			WhiskeyHalf,
		Weight			=			3,
		ReplaceOnUse	=			WhiskeyEmpty,
		Alcoholic 		=			true
	}

	item Molotov
	{
		Type			=			Weapon,
		DisplayName		=			Molotov Cocktail,
		Icon			=			Molotov,
		MaxDamage		=			0.0,
		MinDamage		=			0.0,
		PhysicsObject	=			MolotovCocktail,
		OtherHandRequire =			Lighter,
		OtherHandUse	=			true,
		MaxRange 		= 			8.0,
		MaxHitCount		=			0,
		UseSelf			=			true,
		SwingAnim		=			null,
		Weight			=			3
		
	}

	item BaseballBat
	{
		Type			=			Weapon,
		DisplayName		=			Baseball Bat,
		Icon			=			BaseballBat,
		MinAngle		=			0,
		MaxDamage		=			1.0,
		MinDamage		=			0.7,
		MaxRange 		= 			1.5,
		SwingAnim		=			Bat,
		WeaponSprite	=			baseballbat,
		Weight			=			10,
		DoorDamage		=			5,
		MinimumSwingTime = 			15,
		SwingTime		=			26,
		SwingAmountBeforeImpact = 	0.2,	
		
		
	}

	item BaseballBatNails
	{
		Type			=			Weapon,
		DisplayName		=			Spiked Baseball Bat,
		Icon			=			BaseballBatNails,
		MinAngle		=			0,
		MaxDamage		=			1.8,
		MinDamage		=			1.8,
		MaxRange 		= 			1.5,
		SwingAnim		=			Bat,
		WeaponSprite	=			baseballbat,
		Weight			=			15,
		WeaponWeight 	=			1.0,
		DoorDamage		=			10,
		MinimumSwingTime = 			15,
		SwingTime		=			26,
		SwingAmountBeforeImpact = 	0.2,
		PushBackMod		=			0.6,
		ConditionLowerChanceOneIn = 3,
		ConditionMax 			  = 15,
		
		
	}

	item Axe
	{
		Type			=			Weapon,
		DisplayName		=			Axe,
		Icon			=			Axe,
		MinAngle		=			0.2,
		MaxDamage		=			1.5,
		MinDamage		=			0.7,
		MaxRange 		= 			1.3,
		SwingAnim		=			Bat,
		WeaponSprite	=			axe,
		Weight			=			35,
		WeaponWeight 	=			2.0,
		DoorDamage		=			50,
		MinimumSwingTime = 			30,
		SwingTime		=			35,
		SwingAmountBeforeImpact = 	0.15,
		PushBackMod		=			0.3,
		SplatNumber		=			4,
		KnockBackOnNoDeath = 		false,		
		SplatBloodOnNoDeath = 		true,
		ImpactSound		=			splat1,
	}

	item Shotgun
	{
		Type			=			Weapon,
		DisplayName		=			Shotgun,
		Icon			=			Shotgun,
		Ranged			=			true,
		MinAngle		=			0.88,
		MaxDamage		=			1.8,
		MinDamage		=			1.5,
		MaxRange 		= 			8.0,
		SwingAnim		=			Rifle,
		WeaponSprite	=			shotgun,
		SwingSound		=			shotgun,
		SoundVolume		=			40,
		SoundRadius		=			50,
		AngleFalloff	=			true,
		ToHitModifier	=			1.5,
		NPCSoundBoost 	=			1.5,
		Weight			=			25,
		WeaponWeight 	=			1.8,
		DoorDamage		=			20,
		MinimumSwingTime = 			0,
		SwingTime		=			33,
		SwingAmountBeforeImpact = 	0.0,
		PushBackMod		=			0.3,
		SplatNumber		=			5,
		KnockBackOnNoDeath = 		false,			
		SplatBloodOnNoDeath = 		true,
		ImpactSound		=			null,
		RangeFalloff	=			true,
		UseEndurance	=			false,
		ShareDamage		=			false,
		AmmoType		=			ShotgunShells,
		ConditionLowerChanceOneIn = 5,
		ConditionMax 			  = 50,
		MultipleHitConditionAffected = false,
	}

	item Plank
	{
		Type			=			Weapon,
		DisplayName		=			Wooden Plank,
		Icon			=			Plank,
		MinAngle		=			-0.2,
		MaxDamage		=			0.2,
		MinDamage		=			0.1,
		MaxRange 		= 			2.0,
		SwingAnim		=			Bat,
		WeaponSprite	=			plank,
		Weight			=			8,
		WeaponWeight	=			2.5,
		DoorDamage		=			5,
		MinimumSwingTime = 			15,
		SwingTime		=			26,
		SwingAmountBeforeImpact = 	0.2,	
		PushBackMod		=			4.5,
		ConditionLowerChanceOneIn = 5,
		ConditionMax 			  = 10,

	}

	item Hammer
	{
		Type			=			Weapon,
		DisplayName		=			Hammer,
		Icon			=			Hammer,
		MinAngle		=			0,
		MaxDamage		=			1.0,
		MinDamage		=			1.0,
		MaxRange 		= 			0.7,
		SwingAnim		=			Bat,
		WeaponSprite	=			hammer,
		Weight			=			7,
		WeaponWeight	=			1.5,
		MinimumSwingTime = 			20,
		DoorDamage		=			10,
		SwingTime		=			26,
		SwingAmountBeforeImpact = 	0.3,	
		CanBarricade 	=			true,
		MaxHitCount 	=			1,	
	}

	item Pot
	{
		Type			=			Normal,
		DisplayName		=			Cooking Pot,
		Icon			=			Pot,
		Weight			=			5
	}

	item Doorknob
	{
		Type			=			Normal,
		DisplayName		=			Doorknob,
		Icon			=			DoorKnob,
		Weight			=			5
	}

	item Hinge
	{
		Type			=			Normal,
		DisplayName		=			Door Hinge,
		Icon			=			Doorhinge,
		Weight			=			2
	}

	item Bowl
	{
		Type			=			Normal,
		DisplayName		=			Bowl,
		Icon			=			Bowl,
		Weight			=			2
	}

	item KatePic
	{
		Type			=			Normal,
		DisplayName		=			Picture of Kate,
		Icon			=			PictureKate,
		Weight			=			2
	}

	item WhiskeyEmpty
	{
		Type			=			Normal,
		DisplayName		=			Empty Bottle,
		Icon			=			WhiskeyEmpty,
		Weight			=			2
	}

	item Belt
	{
		Type			=			Normal,
		DisplayName		=			Belt,
		Icon			=			Belt,
		Weight			=			3
	}

	item Pen
	{
		Type			=			Normal,
		DisplayName		=			Pen,
		Icon			=			Pen,
		Weight			=			0.1
	}

	item Pencil
	{
		Type			=			Normal,
		DisplayName		=			Pencil,
		Icon			=			Pencil,
		Weight			=			0.1
	}
	
	item Screwdriver
	{
		Type			=			Normal,
		DisplayName		=			Screwdriver,
		Icon			=			Screwdriver,
		Weight			=			0.1
	}

	item Sheet
	{
		Type			=			Normal,
		DisplayName		=			Sheet,
		Icon			=			Sheet,
		Weight			=			2
	}

	item RippedSheets
	{
		Type			=			Normal,
		DisplayName		=			Ripped Sheet,
		Icon			=			Rag,
		Count			=			8,
		Weight			=			0.25
	}

	item Pillow
	{
		Type			=			Normal,
		DisplayName		=			Pillow,
		Icon			=			Pillow,
		Weight			=			2
	}

	item Socks
	{
		Type			=			Normal,
		DisplayName		=			Sock,
		Icon			=			Socks1,
		Count			=			2,	
		Weight			=			2
	}

	item Door
	{
		Type			=			Normal,
		DisplayName		=			Door,
		Icon			=			Door,
		Weight			=			150
	}

	item TinOpener
	{
		Type			=			Normal,
		DisplayName		=			Can Opener,
		Icon			=			CanOpener,
		Weight			=			2
	}

	item ShotgunShells
	{
		Type			=			Normal,
		DisplayName		=			Shotgun Shells,
		Icon			=			ShotgunAmmo,
		Weight			=			0.5,
		Count			=			12
	}

	item WineEmpty
	{
		Type			=			Normal,
		DisplayName		=			Empty Bottle,
		Icon			=			WineEmpty,
		Weight			=			2
	}

	item WineEmpty2
	{
		Type			=			Normal,
		DisplayName		=			Empty Bottle,
		Icon			=			Wine2Empty,
		Weight			=			2
	}

	item DishCloth
	{
		Type			=			Normal,
		DisplayName		=			Dish Towel,
		Icon			=			Dishtowel,
		Weight			=			1
	}

	item Nails
	{
		Type			=			Normal,
		DisplayName		=			Nails,
		Icon			=			Nails,
		Weight			=			0.1,
		Count			=			5
		
	}

	item Barricade
	{
		Type			=			Normal,
		DisplayName		=			Barricade,
		Icon			=			Barricade,
		Weight			=			16,
		
	}

	item Battery
	{
		Type			=			Drainable,
		DisplayName		=			Battery,
		Icon			=			Battery,
		Weight			=			1,
		UseWhileEquipped = 			false,
		
	}

	item Torch
	{
		Type			=			Drainable,
		DisplayName		=			Flashlight,
		Icon			=			Flashlight,
		Weight			=			5,
		DisappearOnUse 	=			false,
		UseDelta		=			0.0009,
	}

	item Lighter
	{
		Type			=			Drainable,
		DisplayName		=			Lighter,
		Icon			=			Lighter,
		Weight			=			0.5,
		UseWhileEquipped = 			false,
		
	}

	item Pills
	{
		Type			=			Drainable,
		DisplayName		=			Painkillers, 
		Icon			=			Pills,
		Weight			=			0.1,
		UseWhileEquipped = 			false,
		
	}

	item PillsBeta
	{
		Type			=			Drainable,
		DisplayName		=			Beta Blockers,
		Icon			=			Pills2,
		Weight			=			0.1,
		UseWhileEquipped = 			false,
		
	}

	item PillsAntiDep
	{
		Type			=			Drainable,
		DisplayName		=			Anti-depressants,
		Icon			=			Pills3,
		Weight			=			0.1,
		UseWhileEquipped = 			false,
		
	}

	item PillsSleepingTablets
	{
		Type			=			Drainable,
		DisplayName		=			Sleeping Tablets,
		Icon			=			Pills4,
		Weight			=			0.1,
		UseWhileEquipped = 			false,
		
	}

	item PetrolCan
	{
		Type			=			Drainable,
		DisplayName		=			Fuel Can,
		Icon			=			Petrol,
		Weight			=			12,
		UseWhileEquipped = 			false,
		
	}

	item Vest
	{
		Type			=			Clothing,
		BodyLocation	=			Top,
		DisplayName		=			Vest,
		Icon			=			Vest,
		Palettes		=			Shirt_Black/Shirt_Blue/Shirt_Brown/Shirt_Green/Shirt_Grey/Shirt_Sand/Shirt_White/Shirt_Orange/Shirt_DarkBlue/Shirt_Pink,
		PalettesStart 	=			Shirt_,
		SpriteName		=			Shirt2
		
	}

	item Sweater
	{
		Type			=			Clothing,
		BodyLocation	=			Top,
		DisplayName		=			Sweater,
		Icon			=			Sweater,
		Palettes		=			Shirt_Black/Shirt_Blue/Shirt_Brown/Shirt_Green/Shirt_Grey/Shirt_Sand/Shirt_White/Shirt_Orange/Shirt_DarkBlue/Shirt_Pink,
		PalettesStart 	=			Shirt_,
		SpriteName		=			Shirt1
		
	}

	item Trousers
	{
		Type			=			Clothing,
		BodyLocation	=			Bottoms,
		DisplayName		=			Trousers,
		Icon			=			Trousers,
		Palettes		=			Trousers_Blue/Trousers_Brown/Trousers_Grey/Trousers_White,
		PalettesStart 	=			Trousers_,
		SpriteName		=			Trousers1
		
	}

	item Shoes
	{
		Type					=			Clothing,
		BodyLocation	=			Shoes,
		DisplayName		=			Shoes,
		Icon					=			Shoes,
		SpriteName		=			Shoes1
		
	}

	containeritemdistribution
	{
		Room					= shed,
		Containers				= counter,
		Hammer					= 1,	
		Plank					= 10,
		Nails					= 12,
	}

	containeritemdistribution
	{
		Room					= shopGeneral,
		Containers				= counter,
		Bread					= 10-20,
		WhiskeyFull				= 5-10,
	}
	containeritemdistribution
	{
		Containers				= counter/wardrobe/crate,
		Shotgun					= 6,
		ShotgunShells			= 5-10,
		BaseballBat				= 8-12,
	}

	containeritemdistribution
	{
		Containers				= counter/sidetable/crate,
		Battery					= 30,
		Nails					= 60,
		Lighter					= 10,
		Torch					= 5,
		Pen						= 30,
		Pencil					= 30,
		Tissue					= 20,
	}
	
	containeritemdistribution
	{
		Containers				= sidetable,
		Tissue					= 40,
	}
	
	containeritemdistribution
	{
		Containers				= counter/sidetable/crate/fridge,
		WhiskeyFull				= 30,
		Chocolate				= 10,
	}
	
	containeritemdistribution
	{
		Containers				= medicine,
		Pills					= 30,
		PillsBeta				= 30,
		PillsAntiDep			= 30,
		PillsSleepingTablets 	= 30,
	}
	
	containeritemdistribution
	{
		Containers				= fridge,
		Bread					= 10,
		Carrots					= 10,
		Steak					= 10,
		Chicken					= 10,
		Salmon					= 10,
		Carrots					= 10,
		Apple					= 10,	
	}

	containeritemdistribution
	{
		Containers				= vendingsnacks,
		Crisps					= 10,
		Crisps2					= 10,
		Crisps3					= 10,
	
		
	}

	containeritemdistribution
	{
		Containers				= vendingpop,
		Pop						= 10,
		Pop2					= 10,
		Pop3					= 10

		
	}

	containeritemdistribution
	{
		Containers				= wardrobe,
		Sheet					= 30,
		Belt					= 10,			
	}
		
	containeritemdistribution
	{
		Containers				= crate,
		PetrolCan				= 6,
		Plank					= 30,		
	}

	containeritemdistribution
	{
		Containers				= crate/counter,
		Axe						= 5,		
	}
	
	containeritemdistribution
	{
		Containers				= counter,
		TinOpener				= 15,
		Pot						= 20,
	}
	
	containeritemdistribution
	{
		Containers				= wardrobe,
		Vest					= 20,
		Sweater					= 20,
		Trousers				= 20,
		Shoes					= 20
	}

	flooritemdistribution
	{
		Zone					= foodItems,
		TinnedSoup				= 8,
		Crisps					= 8,
		Crisps2					= 8,
		Crisps3					= 8,
		Pop						= 8,
		Pop2					= 8,
		Pop3					= 8
	}
	
	shelfitemdistribution
	{
		Zone					= shopShelvesFood,		
		LootedValue				= 4,					/* Higher value means more items missing from shelves. */
		Bread,
		TinnedSoup,
		WhiskeyFull,
		Pop,
		Pop2,
		Pop3,
		Crisps,
		Crisps2,
		Crisps3,
	}
	
	shelfitemdistribution
	{
		Zone					= StoreShelves,		
		LootedValue				= 4,					/* Higher value means more items missing from shelves. */
		Bread,
		TinnedSoup,
		Pop,
		Pop2,
		Pop3,
		Book,
		Newspaper,
		Magazine,
	}
	
	flooritemdistribution
	{
		Zone					= StoreFloor,		
		Bread					= 2,
		Pop						= 2,
		Pop2					= 2,
		Pop3					= 2,
		Crisps					= 1,
		Newspaper				= 2,
		Magazine				= 2,
	}
	
	shelfitemdistribution
	{
		Zone					= HardwareStoreShelves,		
		LootedValue				= 4,		/* Higher value means more items missing from shelves. */
		Hammer,
		Doorknob,
		Hinge,
		TinOpener,
		Nails,
		Screwdriver,
	}
	
	flooritemdistribution
	{
		Zone					= HardwareStoreFloor,
		Hammer					= 4,
		Nails					= 4,
		Doorknob				= 2,
		Hinge					= 2,
	}
	
	recipe SpikedBat
	{
		BaseballBat,
		Nails,
		keep Hammer,		
		null,				
	   
		BaseballBatNails,	
		5.0,		
	}

	recipe Barricade
	{
		Plank=2,
		Nails=2,
		keep Hammer,		
		null,				
	   
		Barricade,	
		5.0,		
	}

	recipe Molotov
	{
	   WineEmpty/WhiskeyEmpty,
	   PetrolCan,
	   DishCloth/RippedSheets,
	   null,
	   
	   Molotov,
	   3.0
	}

	recipe RippedSheets
	{
	   Sheet,
	   null,
	   null,
	   null,
	   
	   RippedSheets,
	   3.0
	}

	recipe Door
	{
	   Plank=4,
	   Hinge=2,
	   Nails=5,
	   Doorknob,
	   
	   Door,
	   5.0
	}

	recipe PotOfSoup
	{
	   TinnedSoup,
	   keep TinOpener,
	   Pot,
	   null,
	   
	   PotOfSoup,
	   5.0
	}
}
