diff --git a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/DefCore.txt new file mode 100644 index 000000000..83433ea96 --- /dev/null +++ b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/DefCore.txt @@ -0,0 +1,15 @@ +[DefCore] +id=Chunk_Metal +Version=4,10,0,0 +Category=C4D_Object +Width=12 +Height=12 +Offset=-6,-6 +Vertices=3 +VertexX=0,4,-4 +VertexY=3,-3,-3 +VertexFriction=40,40,40 +Value=15 +Mass=25 +Components=Chunk_Ore=1 +Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/Graphics.8.png b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/Graphics.8.png new file mode 100644 index 000000000..5eccebe9e Binary files /dev/null and b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/Graphics.8.png differ diff --git a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/Script.c new file mode 100644 index 000000000..03fd1c27b --- /dev/null +++ b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/Script.c @@ -0,0 +1,25 @@ +/*--- Metal Chunk ---*/ + +#include Library_CarryHeavy + +public func GetCarryMode(clonk) { return CARRY_BothHands; } +public func GetCarryPhase() { return 800; } + +protected func Hit() +{ + Sound("GeneralHit?"); +} + +public func IsChunk() { return true; } +public func IsFoundryProduct() { return true; } +public func GetFuelNeed() { return 100; } + +func Definition(def) { + SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(30,0,0,1),Trans_Rotate(-30,1,0,0),Trans_Scale(1300)),def); +} + +local Name = "$Name$"; +local Description = "$Description$"; +local Rebuy = true; +local Touchable = 2; +local Plane = 470; \ No newline at end of file diff --git a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/StringTblDE.txt b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/StringTblDE.txt new file mode 100644 index 000000000..5a19f664b --- /dev/null +++ b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/StringTblDE.txt @@ -0,0 +1,2 @@ +Name=Metall +Description=Baumaterial für viele Gebäude. diff --git a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/StringTblUS.txt b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/StringTblUS.txt new file mode 100644 index 000000000..df79d4fa6 --- /dev/null +++ b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Metal.ocd/StringTblUS.txt @@ -0,0 +1,2 @@ +Name=Metal +Description=Useful for construction. \ No newline at end of file diff --git a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Ore.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Ore.ocd/Script.c index 2867414a8..366cbf1ef 100644 --- a/planet/Objects.ocd/Items.ocd/Chunks.ocd/Ore.ocd/Script.c +++ b/planet/Objects.ocd/Items.ocd/Chunks.ocd/Ore.ocd/Script.c @@ -11,10 +11,6 @@ protected func Hit(x, y) return true; } -public func ForceEnterProducer(id id) -{ - if (id == Foundry) return true; -} public func IsChunk() { return true; } func Definition(def) { @@ -25,4 +21,4 @@ local Name = "$Name$"; local Description = "$Description$"; local Rebuy = true; local Touchable = 2; -local Plane = 460; \ No newline at end of file +local Plane = 460; diff --git a/planet/Objects.ocd/Items.ocd/Resources.ocd/Metal.ocd/Script.c b/planet/Objects.ocd/Items.ocd/Resources.ocd/Metal.ocd/Script.c index 6c2890471..fb9374f20 100644 --- a/planet/Objects.ocd/Items.ocd/Resources.ocd/Metal.ocd/Script.c +++ b/planet/Objects.ocd/Items.ocd/Resources.ocd/Metal.ocd/Script.c @@ -12,7 +12,7 @@ protected func Hit() return 1; } -public func IsFoundryProduct() { return true; } +public func IsFoundryProduct() { return false; } public func GetFuelNeed() { return 100; } local Name = "$Name$"; diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Axe.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Axe.ocd/DefCore.txt index ffbcc41f6..672374e97 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Axe.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Axe.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=0,3,-3 VertexFriction=50,50,50 Value=15 Mass=12 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Barrel.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Barrel.ocd/DefCore.txt index eb7b3175b..e1486281b 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Barrel.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Barrel.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=-6,-6,6,6,0,0 VertexFriction=60,60,60,60,60,60 Value=12 Mass=20 -Components=Chunk_Wood=2;Metal=1; +Components=Chunk_Wood=2;Chunk_Metal=1; Rotate=1 Float=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Bucket.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Bucket.ocd/DefCore.txt index 5bab20518..774cae3e4 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Bucket.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Bucket.ocd/DefCore.txt @@ -11,4 +11,4 @@ VertexY=3,-3,-3 VertexFriction=75,100,100 Value=1 Mass=5 -Components=Metal=1 \ No newline at end of file +Components=Chunk_Metal=1 \ No newline at end of file diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Dynamite.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Dynamite.ocd/DefCore.txt index 2b7a14fb7..dc7ae197c 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Dynamite.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Dynamite.ocd/DefCore.txt @@ -13,4 +13,4 @@ VertexFriction=90,90,90 Value=3 Mass=8 Rotate=1 -Components=Coal=1;Firestone=1 +Components=Chunk_Coal=1;Firestone=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/DynamiteBox.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/DynamiteBox.ocd/DefCore.txt index cc44c257f..fa6f76244 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/DynamiteBox.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/DynamiteBox.ocd/DefCore.txt @@ -12,5 +12,5 @@ VertexFriction=50,50,50,50 Picture=0,0,64,64 Value=16 Mass=30 -Components=Planks=1;Coal=2;Firestone=2 +Components=Planks=1;Chunk_Coal=2;Firestone=2 Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/DefCore.txt index df5518d15..4a53873bb 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/GrappleBow.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=0,0 VertexFriction=80,80 Value=12 Mass=10 -Components=Planks=2;Metal=1;Rope=1; +Components=Planks=2;Chunk_Metal=1;Rope=1; Rotate=1 Float=2 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Hammer.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Hammer.ocd/DefCore.txt index 4246d1f41..0bf5e99e3 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Hammer.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Hammer.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=1,5,-2,-2 VertexFriction=80,80,80,80 Value=3 Mass=15 -Components=Chunk_Wood=1;Rock=1; +Components=Chunk_Wood=1;Chunk_Rock=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Pickaxe.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Pickaxe.ocd/DefCore.txt index 31a2ca9e7..f10f78014 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Pickaxe.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Pickaxe.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=-6,-5,-5,4 VertexFriction=50,100,100,40 Value=10 Mass=20 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Pipe.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Pipe.ocd/DefCore.txt index 68bce26ec..b3f38e236 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Pipe.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Pipe.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=3 VertexFriction=50 Value=10 Mass=15 -Components=Metal=1 +Components=Chunk_Metal=1 Picture=64,0,64,64 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/PowderKeg.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/PowderKeg.ocd/DefCore.txt index 2229c064d..bcd8dc9a5 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/PowderKeg.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/PowderKeg.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=-6,-6,6,6,0,0 VertexFriction=60,60,60,60,60,60 Value=20 Mass=20 -Components=Barrel=1;Coal=1; +Components=Barrel=1;Chunk_Coal=1; NoComponentMass=1 Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Shovel.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Shovel.ocd/DefCore.txt index 558fe1e12..003544ca2 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Shovel.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Shovel.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=-7,9,0 VertexFriction=50,50,50 Value=10 Mass=20 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/Sickle.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/Sickle.ocd/DefCore.txt index 2272558c9..d77311100 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/Sickle.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/Sickle.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=0,0,0 VertexFriction=50,50,100 Value=10 Mass=10 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 \ No newline at end of file diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/TeleGlove.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/TeleGlove.ocd/DefCore.txt index 59af346e0..ea33abd50 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/TeleGlove.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/TeleGlove.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=-3,2,2 VertexFriction=40,40,40 Value=20 Mass=7 -Components=Metal=2;Crystal=2; +Components=Chunk_Metal=2;Crystal=2; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/WallKit.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/WallKit.ocd/DefCore.txt index 6cb1cecd5..af04d0a04 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/WallKit.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/WallKit.ocd/DefCore.txt @@ -12,6 +12,6 @@ VertexCNAT=1,2,16 VertexFriction=30,30,30 Value=8 Mass=12 -Components=Metal=2 +Components=Chunk_Metal=2 Rotate=1 Picture=0,20,64,64 diff --git a/planet/Objects.ocd/Items.ocd/Tools.ocd/WindBag.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Tools.ocd/WindBag.ocd/DefCore.txt index 45af9b1c3..3b8039759 100644 --- a/planet/Objects.ocd/Items.ocd/Tools.ocd/WindBag.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Tools.ocd/WindBag.ocd/DefCore.txt @@ -10,5 +10,5 @@ VertexY=-1,-3,4 VertexFriction=50,50,50 Value=14 Mass=12 -Components=Cloth=1;Metal=1; +Components=Cloth=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/DefCore.txt index 8f294f804..860328daa 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Club.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=-7,7 VertexFriction=50,50 Value=10 Mass=20 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/DefCore.txt index 58ee5e3ac..bac225b88 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/GrenadeLauncher.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=0,0,2,0 VertexFriction=50,50,70 Value=25 Mass=15 -Components=Metal=3;Planks=1; +Components=Chunk_Metal=3;Planks=1; Rotate=1 \ No newline at end of file diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/IronBomb.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/IronBomb.ocd/DefCore.txt index 232dcc5ab..aa0fe8e53 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/IronBomb.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/IronBomb.ocd/DefCore.txt @@ -12,5 +12,5 @@ VertexY=-2,2,2 VertexFriction=20,20,20 Value=3 Mass=10 -Components=Metal=1;Firestone=1; +Components=Chunk_Metal=1;Firestone=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Javelin.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Javelin.ocd/DefCore.txt index e960fb510..f045bb49b 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Javelin.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Javelin.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=-12,13 VertexFriction=100,50 Value=12 Mass=9 -Components=Chunk_Wood=2;Metal=1; +Components=Chunk_Wood=2;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Musket.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Musket.ocd/DefCore.txt index c8ec346d9..0fa5d4034 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Musket.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Musket.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=0,0,2,0 VertexFriction=50,50,70 Value=18 Mass=15 -Components=Metal=2;Chunk_Wood=1; +Components=Chunk_Metal=2;Chunk_Wood=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Shield.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Shield.ocd/DefCore.txt index 81ccca5ac..c3f990247 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Shield.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Shield.ocd/DefCore.txt @@ -11,5 +11,5 @@ VertexY=-4,5,-2,-2 VertexFriction=50,50 Value=10 Mass=20 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Sword.ocd/DefCore.txt b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Sword.ocd/DefCore.txt index cc1e1ff9c..eece817d0 100644 --- a/planet/Objects.ocd/Items.ocd/Weapons.ocd/Sword.ocd/DefCore.txt +++ b/planet/Objects.ocd/Items.ocd/Weapons.ocd/Sword.ocd/DefCore.txt @@ -11,6 +11,6 @@ VertexY=-7,7 VertexFriction=50,50 Value=10 Mass=20 -Components=Chunk_Wood=1;Metal=1; +Components=Chunk_Wood=1;Chunk_Metal=1; Rotate=1 diff --git a/planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c b/planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c index 5835e26bd..82feb034c 100644 --- a/planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c +++ b/planet/Objects.ocd/Libraries.ocd/Producer.ocd/Script.c @@ -650,15 +650,6 @@ public func RequestObject(id obj_id, int amount) /*-- Storage --*/ -// Split chunks -func Collection2(object obj) -{ - if (obj->~IsChunk()) - obj->Split2Components(); - // 1 frame delay, so the chunk can trigger the appriopriate carry heavy ending calls - // i.e. FxIntCarryHeavyStop -} - protected func RejectCollect(id item, object obj) { // Just return RejectEntrance for this object. diff --git a/planet/Objects.ocd/Structures.ocd/Armory.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Armory.ocd/DefCore.txt index c6eb4c219..63d41d446 100644 --- a/planet/Objects.ocd/Structures.ocd/Armory.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Armory.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-13,-15,-14,24,24,24 VertexFriction=50,50,50,100,100,100 Value=200 Mass=4500 -Components=Planks=3;Metal=2;Loam=2 +Components=Planks=3;Chunk_Metal=2;Loam=2 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/ChemicalLab.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/ChemicalLab.ocd/DefCore.txt index 86b8c2970..bc111c53c 100644 --- a/planet/Objects.ocd/Structures.ocd/ChemicalLab.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/ChemicalLab.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-17,-25,-14,25,25,25 VertexFriction=50,50,50,100,100,100 Value=200 Mass=4500 -Components=Chunk_Wood=3;Metal=3 +Components=Chunk_Wood=3;Chunk_Metal=3 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/Compensator.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Compensator.ocd/DefCore.txt index 700e84054..edd297004 100644 --- a/planet/Objects.ocd/Structures.ocd/Compensator.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Compensator.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=0,-4,-4,10,10,10 VertexFriction=50, 50,50,100,100 Value=20 Mass=100 -Components=Coal=1;Metal=1 +Components=Chunk_Coal=1;Chunk_Metal=1 Exclusive=1 Construction=1 IncompleteActivity=1 \ No newline at end of file diff --git a/planet/Objects.ocd/Structures.ocd/Elevator.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Elevator.ocd/DefCore.txt index 3d8f294a2..f14a749e4 100644 --- a/planet/Objects.ocd/Structures.ocd/Elevator.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Elevator.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-27,-27,32,32,32 VertexFriction=50,50,100,100,100 Value=50 Mass=1500 -Components=Planks=3;Metal=1 +Components=Planks=3;Chunk_Metal=1 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/Flagpole.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Flagpole.ocd/DefCore.txt index cb7f98448..8e9a0a38b 100644 --- a/planet/Objects.ocd/Structures.ocd/Flagpole.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Flagpole.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-34,-29,-29,34,34 VertexFriction=50,50,50,100,100 Value=200 Mass=100 -Components=Chunk_Wood=3;Metal=1 +Components=Chunk_Wood=3;Chunk_Metal=1 Picture=30,0,80,94 Exclusive=1 Construction=1 diff --git a/planet/Objects.ocd/Structures.ocd/Foundry.ocd/Script.c b/planet/Objects.ocd/Structures.ocd/Foundry.ocd/Script.c index df05ca6fe..693bdd104 100644 --- a/planet/Objects.ocd/Structures.ocd/Foundry.ocd/Script.c +++ b/planet/Objects.ocd/Structures.ocd/Foundry.ocd/Script.c @@ -14,7 +14,6 @@ func PowerNeed() { return 0; } public func Construction(object creator) { - //SetProperty("MeshTransformation",Trans_Rotate(RandomX(-40,20),0,1,0)); SetAction("Default"); AddTimer("CollectionZone", 1); @@ -33,7 +32,7 @@ private func ProductionTime(id toProduce) { return 290; } public func NeedRawMaterial(id rawmat_id) { - if (rawmat_id->~IsFuel() || rawmat_id == Ore || rawmat_id == Nugget) + if (rawmat_id->~IsFuel() || rawmat_id == Chunk_Ore || rawmat_id == Chunk_Gold) return true; return false; } diff --git a/planet/Objects.ocd/Structures.ocd/InventorsLab.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/InventorsLab.ocd/DefCore.txt index 1fa3b9bf3..f2def34bd 100644 --- a/planet/Objects.ocd/Structures.ocd/InventorsLab.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/InventorsLab.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=41,-41, 41,41,41,11,2 VertexFriction=100,10,100,100,100,10,10 Value=200 Mass=4500 -Components=Planks=3;Metal=3 +Components=Planks=3;Chunk_Metal=3 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/Kitchen.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Kitchen.ocd/DefCore.txt index c980203c9..3513f11e6 100644 --- a/planet/Objects.ocd/Structures.ocd/Kitchen.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Kitchen.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-17,-25,-14,25,25,25 VertexFriction=50,50,50,100,100,100 Value=200 Mass=4500 -Components=Planks=3;Chunk_Rock=1;Metal=1 +Components=Planks=3;Chunk_Rock=1;Chunk_Metal=1 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/Loom.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Loom.ocd/DefCore.txt index d3a793f59..69137c2d6 100644 --- a/planet/Objects.ocd/Structures.ocd/Loom.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Loom.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-4,-3,14,14 VertexFriction=50,50,100,100 Value=100 Mass=1000 -Components=Planks=3;Metal=1;Chunk_Rock=1 +Components=Planks=3;Chunk_Metal=1;Chunk_Rock=1 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/Pump.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Pump.ocd/DefCore.txt index e84e66753..fdedc75fc 100644 --- a/planet/Objects.ocd/Structures.ocd/Pump.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Pump.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-3,15,15 VertexFriction=50,100,100 Value=40 Mass=400 -Components=Planks=1;Metal=3; +Components=Planks=1;Chunk_Metal=3; Picture=3360,0,112,128,0,0 Exclusive=1 Construction=1 diff --git a/planet/Objects.ocd/Structures.ocd/Shipyard.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/Shipyard.ocd/DefCore.txt index da54ace8f..ffd15d5f3 100644 --- a/planet/Objects.ocd/Structures.ocd/Shipyard.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/Shipyard.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=53,53,53, 3, 3,-17 VertexFriction=100,100,100,50,50,50 Value=200 Mass=4500 -Components=Planks=12;Metal=6 +Components=Planks=12;Chunk_Metal=6 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/SteamEngine.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/SteamEngine.ocd/DefCore.txt index da9c2d8a6..c3f1887be 100644 --- a/planet/Objects.ocd/Structures.ocd/SteamEngine.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/SteamEngine.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-4,-4,24,24,24 VertexFriction=50,50,100,100 Value=180 Mass=4000 -Components=Chunk_Rock=2;Metal=3 +Components=Chunk_Rock=2;Chunk_Metal=3 Collection=-33,7,12,12 Exclusive=1 Construction=1 diff --git a/planet/Objects.ocd/Structures.ocd/ToolsWorkshop.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/ToolsWorkshop.ocd/DefCore.txt index b2210cee5..3abcd4bd2 100644 --- a/planet/Objects.ocd/Structures.ocd/ToolsWorkshop.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/ToolsWorkshop.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-4,-3,19,19 VertexFriction=50,50,100,100 Value=200 Mass=4500 -Components=Chunk_Wood=6;Metal=3 +Components=Chunk_Wood=6;Chunk_Metal=3 Exclusive=1 Construction=1 ContainBlast=1 diff --git a/planet/Objects.ocd/Structures.ocd/WindGenerator.ocd/DefCore.txt b/planet/Objects.ocd/Structures.ocd/WindGenerator.ocd/DefCore.txt index f00c1a65b..29173e3e4 100644 --- a/planet/Objects.ocd/Structures.ocd/WindGenerator.ocd/DefCore.txt +++ b/planet/Objects.ocd/Structures.ocd/WindGenerator.ocd/DefCore.txt @@ -11,7 +11,7 @@ VertexY=-27,-25,-25,34,34 VertexFriction=50,50,50,100,100 Value=45 Mass=900 -Components=Chunk_Wood=3;Metal=1 +Components=Chunk_Wood=3;Chunk_Metal=1 Exclusive=1 Construction=1 Rotate=1 diff --git a/planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/DefCore.txt b/planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/DefCore.txt index 9005d09a8..d4ce6050d 100644 --- a/planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/DefCore.txt +++ b/planet/Objects.ocd/Vehicles.ocd/Airplane.ocd/DefCore.txt @@ -13,7 +13,7 @@ VertexFriction=50,50,50,15,5,5,15,5,5 Value=60 Mass=300 ColorByOwner=1 -Components=Metal=6;Planks=4; +Components=Chunk_Metal=6;Planks=4; Rotate=1 Entrance=-12,-12,24,24 Exclusive=1 diff --git a/planet/Objects.ocd/Vehicles.ocd/Airship.ocd/DefCore.txt b/planet/Objects.ocd/Vehicles.ocd/Airship.ocd/DefCore.txt index bcee663f6..ad0efa35d 100644 --- a/planet/Objects.ocd/Vehicles.ocd/Airship.ocd/DefCore.txt +++ b/planet/Objects.ocd/Vehicles.ocd/Airship.ocd/DefCore.txt @@ -12,7 +12,7 @@ VertexCNAT=0,4,5,6,1,2,1,2,9,10,8 VertexFriction=0,20,20,20,20,20,20,20,80,80,80 Value=50 Mass=5000 -Components=Metal=4;Planks=4;Rope=2; +Components=Chunk_Metal=4;Planks=4;Rope=2; Float=-27; SolidMask=0,0,36,4,11,49 Picture=128,0,128,128,0,0 diff --git a/planet/Objects.ocd/Vehicles.ocd/Cannon.ocd/DefCore.txt b/planet/Objects.ocd/Vehicles.ocd/Cannon.ocd/DefCore.txt index 11565dd26..bd3dfdc78 100644 --- a/planet/Objects.ocd/Vehicles.ocd/Cannon.ocd/DefCore.txt +++ b/planet/Objects.ocd/Vehicles.ocd/Cannon.ocd/DefCore.txt @@ -13,7 +13,7 @@ VertexCNAT=5,6,9,10 VertexFriction=80,80,10,10 Value=50 Mass=125 -Components=Metal=4;Planks=2; +Components=Chunk_Metal=4;Planks=2; GrabPutGet=C4D_GrabGet|C4D_GrabPut Rotate=30 UprightAttach=8 diff --git a/planet/Objects.ocd/Vehicles.ocd/Catapult.ocd/DefCore.txt b/planet/Objects.ocd/Vehicles.ocd/Catapult.ocd/DefCore.txt index 4d3b1657d..2ef2be563 100644 --- a/planet/Objects.ocd/Vehicles.ocd/Catapult.ocd/DefCore.txt +++ b/planet/Objects.ocd/Vehicles.ocd/Catapult.ocd/DefCore.txt @@ -13,7 +13,7 @@ VertexCNAT=5,6,9,10 VertexFriction=80,80,10,10 Value=50 Mass=125 -Components=Metal=1;Chunk_Wood=6; +Components=Chunk_Metal=1;Chunk_Wood=6; Entrance=-12,-12,24,24 RotatedEntrance=1 GrabPutGet=C4D_GrabGet|C4D_GrabPut diff --git a/planet/Objects.ocd/Vehicles.ocd/Lorry.ocd/DefCore.txt b/planet/Objects.ocd/Vehicles.ocd/Lorry.ocd/DefCore.txt index 17a48ce8f..254228156 100644 --- a/planet/Objects.ocd/Vehicles.ocd/Lorry.ocd/DefCore.txt +++ b/planet/Objects.ocd/Vehicles.ocd/Lorry.ocd/DefCore.txt @@ -13,7 +13,7 @@ VertexCNAT=5,6,9,10 VertexFriction=80,80,10,10 Value=20 Mass=75 -Components=Metal=2;Chunk_Wood=1; +Components=Chunk_Metal=2;Chunk_Wood=1; Collection=-12,-8,24,10 GrabPutGet=C4D_GrabGet|C4D_GrabPut Rotate=30