
BEGIN Object
    Name                 SheetAluminium
    MaxStackSize         10
    RenderDepth          1
    Price                -10
	BEGIN	Sprite		 x 19 y 1 w 2 h 2 RotateType 0 TopAligned false END
	BEGIN StackSprite	 x 25 y 1 w 2 h 2 RotateType 4 TopAligned false END
    Properties           Material
    Properties           SlowDelivery
	WorkGroup			 PhoneWorkshop
	Research			 SmartPhones
END

BEGIN Object
    Name                 PressedAluminium
    MaxStackSize         10
    RenderDepth          1
	SpriteScale			 0.5
	BEGIN	Sprite		 x 11 y 1 w 2 h 2 RotateType 0 END
	BEGIN	StackSprite	 x 17 y 1 w 2 h 2 RotateType 4 END
    Properties           Material
	WorkGroup			 PhoneWorkshop
	Research			 SmartPhones
END

BEGIN Object
	Name				 AssembledSmartPhone
	Width				 1
	Height				 1
	BEGIN	Sprite		 x 0 y 2 w 2 h 2 RotateType	0 END
	BEGIN	StackSprite	 x 6 y 2 w 2 h 2 RotateType 4 END
	MaxStackSize		 5
	RenderDepth			 2
	SpriteScale			 0.5
	Price				 -1200
	Properties			 Material
	Properties			 Sellable
	Research			 SmartPhones
	WorkGroup			 PhoneWorkshop
END

BEGIN Object
	Name				 SmartPhone
	Width				 1
	Height				 1
	BEGIN	Sprite		 x 0 y 2 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 0 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 2 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 4 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 6 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 8 y 0 w 2 h 2 RotateType	0 END
	NumSprites			 6
	RenderDepth			 2
	SpriteScale			 0.5
	Properties			 Scripted
	Price				 -1600
	WorkGroup			 PhoneWorkshop
	Properties			 Sellable
END

BEGIN Object
	Name				 FaultySmartPhone
	Width				 1
	Height				 1
	BEGIN	Sprite		 x 0 y 2 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 0 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 2 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 4 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 6 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 8 y 0 w 2 h 2 RotateType	0 END
	NumSprites			 6
	RenderDepth			 2
	SpriteScale			 0.5
	Properties			 Scripted
	Price				 -1200
	WorkGroup			 PhoneWorkshop
	Properties			 Sellable
END

BEGIN Object
	Name				 RiggedSmartPhone
	Width				 1
	Height				 1
	ConstructionTime	 0
	BEGIN	Sprite		 x 0 y 2 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 8 y 0 w 2 h 2 RotateType	0 END
	BEGIN	StackSprite	 x 6 y 2 w 2 h 2 RotateType 4 END
	MaxStackSize		 5
	NumSprites			 2
	RenderDepth			 3
	SpriteScale			 0.5
	Properties			 Scripted
	Price				 -800
	Properties			 Material
	WorkGroup			 PhoneWorkshop
	Research			 SmartPhones
END

BEGIN Object
	Name				 SeizedSmartPhone
	Width				 1
	Height				 1
	BEGIN	Sprite		 x 0 y 2 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 0 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 2 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 4 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 6 y 0 w 2 h 2 RotateType	0 END
	BEGIN	Sprite		 x 8 y 0 w 2 h 2 RotateType	0 END
	BEGIN	StackSprite	 x 6 y 2 w 2 h 2 RotateType 4 END
	MaxStackSize		 5
	NumSprites			 6
	RenderDepth			 2
	SpriteScale			 0.5
	Properties			 Scripted
	Price				 -1600
	Properties			 Sellable
	WorkGroup			 PhoneWorkshop
	Properties			 Material
END

BEGIN Object
	Name				 ExplodedSmartPhone
	Width				 1
	Height				 1
	BEGIN	Sprite		 x 0 y 2 w 2 h 2 RotateType	0 END
	NumSprites			 6
	RenderDepth			 3
	SpriteScale			 0.5
	WorkGroup			 PhoneWorkshop
	Properties			 Rubbish
END

BEGIN Object
	Name				 SmartPhoneDetector
	Width				 1
	Height				 1
	Toughness			 10.0000
	ConstructionTime	 0
	Price				 -2500
	BEGIN	Sprite		 x 8 y 2 w 1 h 1 RotateType	0 END
	SpriteScale			 0.5
	RenderDepth			 2
	Group				 StaticObject
	BlockedBy			 StaticObject
	BlockedBy			 UtilityStation
	MadeOf				 Composite
	Properties			 StaticObject
	Properties			 DontAvoid
	Properties			 Scripted
END

BEGIN Object
	Name				 RiggedPhoneSpawner
	Width				 1
	Height				 1
	Toughness			 10.0000
	ConstructionTime	 0
	Price				 -25000
	BEGIN	Sprite		 x 9 y 2 w 1 h 1 RotateType	0 END
	SpriteScale			 0.5
	RenderDepth			 2
	Group				 StaticObject
	BlockedBy			 StaticObject
	BlockedBy			 UtilityStation
	MadeOf				 Composite
	Properties			 StaticObject
	Properties			 DontAvoid
	Properties			 Scripted
	Research			 SmartPhones
END

BEGIN Object
	Name				 SmartPhoneAreaCovered
	Width				 1
	Height				 1
	Toughness			 10000.000
	RenderDepth			 5
	SpriteScale			 0.5
	BEGIN	Sprite		 x 8 y 2 w 1 h 1 RotateType 0 END
	Properties			 Scripted
END

BEGIN Object
	Name				 PrisonerMailOpened
	RenderDepth			 2
	Sprite				 MailOpened1
	SpriteVariants		 3
	Properties			 Uncloneable
	Properties			 Scripted
END

BEGIN Object
	Name				 BatteryExplosion
	BEGIN	Sprite		 x 27 y 7 w 2 h 2 RotateType	0 END
	Properties			 Scripted
	Properties			 DontAvoid
	Width				 1
	Height				 1
END

BEGIN Object
	Name				 BatteryEnergyBurst
	Width				 3
	Height				 3
	Toughness			 10
	ConstructionTime	 -1
	Price				 -1
	RenderDepth			 4
	WorkGroup			 PhoneWorkshop
	SpriteScale			 0.5
	NumSprites			 9
	BEGIN	Sprite		 x 25 y 5 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 19 y 5 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 25 y 11 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 19 y 11 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 1 y 17 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 7 y 17 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 13 y 17 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 19 y 17 w 6 h 6 RotateType 0 END
	BEGIN	Sprite		 x 25 y 17 w 6 h 6 RotateType 0 END
	Properties			 Scripted
	Properties			 Sellable
END

BEGIN Object
    Name                 PhonePress
    Width                3
    Height               1
    ConstructionTime     15.00000
    MoveSpeedFactor      0.250000
    Toughness            25.0000
    Price                -1650
    NumSlots             3
    Group                StaticObject
    BlockedBy            Wall
    BlockedBy            StaticObject
    BlockedBy            UtilityStation
    MadeOf               SolidMetal
    Properties           StaticObject
    Properties           Processor
    Properties           RoomSpecific
	WorkGroup			 PhoneWorkshop
	BEGIN ToolbarSprite	 x 3 y 13 w 2 h 2 END
	NumSprites			 2
  BEGIN Sprite          x 1  y 13  w 6  h 3   RotateType 4
    BEGIN Marker  x 1       y 1         orientation.x 0 orientation.y 0   Index 0   END
    BEGIN Marker  x 2.96875 y 1.4375    orientation.x -1 orientation.y 0  Index 1   END
    BEGIN Marker  x 5       y 1         orientation.x 0 orientation.y 0   Index 2   END
  END
  BEGIN Sprite          x 7  y 13  w 6  h 3   RotateType 4
    BEGIN Marker  x 1       y 1         orientation.x 0 orientation.y 0   Index 0   END
    BEGIN Marker  x 2.96875 y 1.4375    orientation.x -1 orientation.y 0  Index 1   END
    BEGIN Marker  x 5       y 1         orientation.x 0 orientation.y 0   Index 2   END
  END
	Research			 SmartPhones
	BEGIN Workers
		Worker			 SmartPhoneGenius
		Worker			 Prisoner
	END
	Properties			 Scripted
END

BEGIN Object
	Name				 PhoneTable
	Width				 3
	ConstructionTime	 0
	MoveSpeedFactor		 0.50000
	Toughness			 10.0000
	Price				 -200
	NumSlots			 3
	Group				 StaticObject
	BlockedBy			 Wall
	BlockedBy			 StaticObject
	BlockedBy			 UtilityStation
	MadeOf				 Composite
	Properties			 StaticObject
	Properties			 Processor
	Properties			 RoomSpecific
	WorkGroup			 PhoneWorkshop
	Research			 SmartPhones
	BEGIN ToolbarSprite	 x 1 y 5 w 2 h 2 END
	BEGIN	Sprite		 x 1 y 5 w 5 h 3 RotateType 4 TopAligned false
	 BEGIN	Marker		 x 1.0 y 1.2 orientation.x 0 orientation.y 0 Index 0 END
	 BEGIN	Marker		 x 2.5 y 1.2 orientation.x 0 orientation.y 0 Index 1 END
	 BEGIN	Marker		 x 4.0 y 1.2 orientation.x 0 orientation.y 0 Index 2 END
	END
	BEGIN Workers
		Worker			 SmartPhoneGenius
		Worker			 Prisoner
	END
END

BEGIN Object
	Name				 SmallTablePhoneWorkshop
	Width				 2
	ConstructionTime	 0
	Toughness			 10.0000
	Price				 -50
	Group				 StaticObject
	BlockedBy			 Wall
	Properties			 RoomSpecific
	WorkGroup			 PhoneWorkshop
	BlockedBy			 StaticObject
	BlockedBy			 UtilityStation
	MadeOf				 Composite
	Properties			 StaticObject
	NumSlots			 8
	Properties			 Processor
	BEGIN	Sprite		 x 21 y 3 w 4 h 2 RotateType 1 TopAligned false
		BEGIN Marker	 x 1.016875 y 0.71875 orientation.x 0 orientation.y 0 Index 0 END
		BEGIN Marker	 x 3.016875 y 0.71875 orientation.x 0 orientation.y 0 Index 1 END
		BEGIN Marker	 x 1.026875 y 0.72875 orientation.x 0 orientation.y 0 Index 2 END
		BEGIN Marker	 x 3.026875 y 0.72875 orientation.x 0 orientation.y 0 Index 3 END
		BEGIN Marker	 x 1.036875 y 0.73875 orientation.x 0 orientation.y 0 Index 4 END
		BEGIN Marker	 x 3.036875 y 0.73875 orientation.x 0 orientation.y 0 Index 5 END
		BEGIN Marker	 x 1.046875 y 0.74875 orientation.x 0 orientation.y 0 Index 6 END
		BEGIN Marker	 x 3.046875 y 0.74875 orientation.x 0 orientation.y 0 Index 7 END

		BEGIN Marker	 x 5.016875 y 0.71875 orientation.x 0 orientation.y -1 Index 0 END
		BEGIN Marker	 x 7.016875 y 0.71875 orientation.x 0 orientation.y -1 Index 1 END
		BEGIN Marker	 x 5.026875 y 0.72875 orientation.x 0 orientation.y -1 Index 2 END
		BEGIN Marker	 x 7.026875 y 0.72875 orientation.x 0 orientation.y -1 Index 3 END
		BEGIN Marker	 x 5.036875 y 0.73875 orientation.x 0 orientation.y -1 Index 4 END
		BEGIN Marker	 x 7.036875 y 0.73875 orientation.x 0 orientation.y -1 Index 5 END
		BEGIN Marker	 x 5.046875 y 0.74875 orientation.x 0 orientation.y -1 Index 6 END
		BEGIN Marker	 x 7.046875 y 0.74875 orientation.x 0 orientation.y -1 Index 7 END

		BEGIN Marker	 x 9.015625 y -0.91875 orientation.x -1 orientation.y 0 Index 0 END
		BEGIN Marker	 x 9.015625 y 0.41875 orientation.x -1 orientation.y 0 Index 1 END
		BEGIN Marker	 x 9.025625 y -0.92875 orientation.x -1 orientation.y 0 Index 2 END
		BEGIN Marker	 x 9.025625 y 0.42875 orientation.x -1 orientation.y 0 Index 3 END
		BEGIN Marker	 x 9.035625 y -0.93875 orientation.x -1 orientation.y 0 Index 4 END
		BEGIN Marker	 x 9.035625 y 0.43875 orientation.x -1 orientation.y 0 Index 5 END
		BEGIN Marker	 x 9.045625 y -0.94875 orientation.x -1 orientation.y 0 Index 6 END
		BEGIN Marker	 x 9.045625 y 0.44875 orientation.x -1 orientation.y 0 Index 7 END
	END
	ToolbarSprite		 TableToolbar
	Research			 SmartPhones
	BEGIN Workers
		Worker			 SmartPhoneGenius
		Worker			 Prisoner
	END
END

# fake processor: so modded staff think they can operate it and thus store materials in it as well (stacks only)
BEGIN Object
	Name				 AluminiumStorageRack
	ConstructionTime	 4
	MoveSpeedFactor		 0.6
	Toughness			 90
	Price				 -150
	Group				 StaticObject
	BlockedBy			 StaticObject
	Properties			 RoomSpecific
	BlockedBy			 UtilityStation
	BlockedBy			 Wall
	MadeOf				 SolidMetal
	Properties			 StaticObject
	Properties			 Processor
	WorkGroup			 PhoneWorkshop
	NumSlots			 8
	RenderDepth			 0
	AutoOrder			 SheetAluminium
	AutoOrderQuantity	 80
	Width				 4
	Height				 2
	BEGIN ToolbarSprite	 x 1 y 9 w 2 h 2 END
	BEGIN	Sprite		 x 1 y 9 w 6 h 3 RotateType 2 TopAligned false
		BEGIN	Marker	 x 0.7 y 1.75 orientation.x 0 orientation.y 0 Index 0 END
		BEGIN	Marker	 x 0.7 y 0.25 orientation.x 0 orientation.y 0 Index 1 END
		BEGIN	Marker	 x 2.15 y 1.75 orientation.x 0 orientation.y 0 Index 2 END
		BEGIN	Marker	 x 2.15 y 0.25 orientation.x 0 orientation.y 0 Index 3 END
		BEGIN	Marker	 x 3.65 y 0.25 orientation.x 0 orientation.y 0 Index 4 END
		BEGIN	Marker	 x 3.65 y 1.75 orientation.x 0 orientation.y 0 Index 5 END
		BEGIN	Marker	 x 5.15 y 0.25 orientation.x 0 orientation.y 0 Index 6 END
		BEGIN	Marker	 x 5.15 y 1.75 orientation.x 0 orientation.y 0 Index 7 END

		BEGIN	Marker	 x 8.7 y -1.75 orientation.x -1 orientation.y 0 Index 0 END
		BEGIN	Marker	 x 8.7 y -1.25 orientation.x -1 orientation.y 0 Index 1 END
		BEGIN	Marker	 x 8.15 y -1.75 orientation.x -1 orientation.y 0 Index 2 END
		BEGIN	Marker	 x 8.15 y -1.25 orientation.x -1 orientation.y 0 Index 3 END
		BEGIN	Marker	 x 8.65 y 0.25 orientation.x -1 orientation.y 0 Index 4 END
		BEGIN	Marker	 x 8.65 y -0.75 orientation.x -1 orientation.y 0 Index 5 END
		BEGIN	Marker	 x 8.15 y 0.25 orientation.x -1 orientation.y 0 Index 6 END
		BEGIN	Marker	 x 8.15 y -0.75 orientation.x -1 orientation.y 0 Index 7 END
	END
	Research			 SmartPhones
	BEGIN Workers
		Worker			 SmartPhoneGenius
		Worker			 Prisoner
	END
END

BEGIN Room
    Name                 PhoneWorkshop
	Properties			 RequiresSector
    Research             SmartPhones
    Properties           PrisonersCanWork
    Qualification        PhoneAssembly
	WorkGroup			 PhoneWorkshop
    BEGIN Requirement Type Object  Id PhonePress   END
    BEGIN Requirement Type Object  Id PhoneTable   END
    BEGIN Requirement Type Object  Id SmallTablePhoneWorkshop   END
    BEGIN Requirement Type Object  Id AluminiumStorageRack   END
    BEGIN LikelyObject  Id      MetalDetector      END
    BEGIN LikelyObject  Id      WorkshopSaw        END
    BEGIN LikelyObject  Id      SmartPhoneDetector END
    BEGIN LikelyObject  Id      Table              END
    BEGIN LikelyObject  Id      SmallTable         END
    BEGIN LikelyObject  Id      MetalStorageRack   END
    BEGIN Contraband    Id      Screwdriver        END
    BEGIN Contraband    Id      MobilePhone        END
    BEGIN Contraband    Id      Shank              END
END

BEGIN Object
    Name                 SmartPhoneGenius
	MoveSpeedFactor		 0.500000
	Toughness			 10.0000
    RenderDepth          3
    ViewRange            8
    Price                -500
	Upkeep				 -100
    BlockedBy            Wall
    BlockedBy            StaticObject
    BlockedBy            UtilityStation
    Research             SmartPhones
	Equipment			 Screwdriver
	BEGIN	Sprite		 x 11 y 4 w 2 h 2 RotateType 1 END
	BEGIN	Sprite		 x 11 y 6 w 2 h 2 RotateType 1 END
	BEGIN	Sprite		 x 11 y 8 w 2 h 2 RotateType 1 END
	BEGIN	Sprite		 x 11 y 10 w 2 h 2 RotateType 1 END
	SpriteVariants		 4
    Properties           Entity
    Properties           Staff
    Properties           StaffNeeds
	Properties           DefaultBehaviour
	HangOutRoom          PhoneWorkshop
	WorkGroup			 PhoneWorkshop
END
