Skip to content

Commit

Permalink
Merge pull request #23768 from Night-Pryanik/use-copy-from-for-location
Browse files Browse the repository at this point in the history
Replaced location field with use of copy-from
  • Loading branch information
ZhilkinSerg authored May 19, 2018
2 parents 65b29eb + 356e24a commit e7cbb32
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 40 deletions.
16 changes: 1 addition & 15 deletions data/json/vehicleparts/turret.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"symbol": "t",
"durability": 400,
"damage_modifier": 80,
"location": "on_roof",
"flags": [ "TURRET", "TOOL_NONE" ]
},
{
Expand All @@ -17,7 +18,6 @@
"color": "dark_gray",
"broken_color": "dark_gray",
"difficulty": 5,
"location": "on_roof",
"breaks_into": [ { "item": "flamethrower", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -39,7 +39,6 @@
"color": "magenta",
"broken_color": "magenta",
"difficulty": 6,
"location": "on_roof",
"breaks_into": [ { "item": "ftk93", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -60,7 +59,6 @@
"color": "magenta",
"broken_color": "magenta",
"difficulty": 5,
"location": "on_roof",
"breaks_into": [ { "item": "laser_rifle", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -81,7 +79,6 @@
"color": "cyan",
"broken_color": "cyan",
"difficulty": 3,
"location": "on_roof",
"breaks_into": [ { "item": "m249", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -102,7 +99,6 @@
"color": "green",
"broken_color": "green",
"difficulty": 3,
"location": "on_roof",
"breaks_into": [ { "item": "abzats", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -123,7 +119,6 @@
"color": "green",
"broken_color": "green",
"difficulty": 4,
"location": "on_roof",
"breaks_into": [ { "item": "m2browning", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -144,7 +139,6 @@
"color": "green",
"broken_color": "green",
"difficulty": 6,
"location": "on_roof",
"breaks_into": [ { "item": "m134", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -165,7 +159,6 @@
"color": "cyan",
"broken_color": "cyan",
"difficulty": 4,
"location": "on_roof",
"breaks_into": [ { "item": "m1918", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -186,7 +179,6 @@
"color": "cyan",
"broken_color": "cyan",
"difficulty": 4,
"location": "on_roof",
"breaks_into": [ { "item": "m240", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -207,7 +199,6 @@
"color": "cyan",
"broken_color": "cyan",
"difficulty": 4,
"location": "on_roof",
"breaks_into": [ { "item": "m60", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -228,7 +219,6 @@
"color": "green",
"broken_color": "green",
"difficulty": 5,
"location": "on_roof",
"breaks_into": [ { "item": "mark19", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -249,7 +239,6 @@
"color": "white",
"broken_color": "white",
"difficulty": 6,
"location": "on_roof",
"breaks_into": [ { "item": "rm298", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -270,7 +259,6 @@
"color": "white",
"broken_color": "white",
"difficulty": 6,
"location": "on_roof",
"breaks_into": [ { "item": "rm614_lmg", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -291,7 +279,6 @@
"color": "light_blue",
"broken_color": "light_blue",
"difficulty": 5,
"location": "on_roof",
"breaks_into": [ { "item": "plasma_rifle", "prob": 50 } ],
"requirements": {
"install": {
Expand All @@ -313,7 +300,6 @@
"color": "blue",
"broken_color": "blue",
"difficulty": 4,
"location": "on_roof",
"breaks_into": [ { "item": "watercannon", "prob": 50 } ],
"requirements": {
"install": {
Expand Down
7 changes: 0 additions & 7 deletions data/mods/Tanks/parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"size": 10,
"extend": { "flags": [ "MANUAL" ] },
"breaks_into": [ { "item": "tank_gun_manual", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "launcher", 2 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand All @@ -35,7 +34,6 @@
"size": 50,
"extend": { "flags": [ "MANUAL" ] },
"breaks_into": [ { "item": "tank_gun_auto", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "launcher", 2 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand All @@ -51,7 +49,6 @@
"size": 100,
"extend": { "flags": [ "NEEDS_BATTERY_MOUNT" ] },
"breaks_into": [ { "item": "tank_gun_rws", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "launcher", 3 ], [ "electronics", 3 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand All @@ -67,7 +64,6 @@
"size": 15,
"extend": { "flags": [ "MANUAL" ] },
"breaks_into": [ { "item": "howitzer_gun", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "launcher", 3 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand All @@ -83,7 +79,6 @@
"size": 35,
"extend": { "flags": [ "MANUAL" ] },
"breaks_into": [ { "item": "atgm_launcher", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "launcher", 3 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand All @@ -99,7 +94,6 @@
"size": 35,
"extend": { "flags": [ "NEEDS_BATTERY_MOUNT" ] },
"breaks_into": [ { "item": "atgm_turret", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "launcher", 3 ], [ "electronics", 3 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand All @@ -115,7 +109,6 @@
"size": 50,
"extend": { "flags": [ "MANUAL" ] },
"breaks_into": [ { "item": "30mm_autocannon", "prob": 50 } ],
"location": "on_roof",
"requirements": {
"install": { "skills": [ [ "mechanics", 5 ], [ "rifle", 3 ] ], "time": 10000 },
"removal": { "skills": [ [ "mechanics", 3 ] ] }
Expand Down
1 change: 1 addition & 0 deletions data/mods/blazemod/blaze_autoweapons_parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"broken_color": "dark_gray",
"durability": 400,
"damage_modifier": 80,
"location": "on_roof",
"flags": [ "FOLDABLE", "TURRET", "NEEDS_BATTERY_MOUNT", "TOOL_NONE" ]
},
{
Expand Down
19 changes: 1 addition & 18 deletions data/mods/blazemod/blaze_weapons_parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"broken_symbol": "#",
"durability": 400,
"damage_modifier": 80,
"location": "on_roof",
"flags": [ "FOLDABLE", "TURRET", "MANUAL", "TOOL_NONE" ]
},
{
Expand All @@ -17,7 +18,6 @@
"color": "light_gray",
"broken_color": "light_gray",
"difficulty": 4,
"location": "on_roof",
"folded_volume": 12,
"breaks_into": [ { "item": "bolter", "count": [ 0, 1 ] } ]
},
Expand All @@ -30,7 +30,6 @@
"color": "brown",
"broken_color": "brown",
"difficulty": 4,
"location": "on_roof",
"folded_volume": 22,
"breaks_into": [ { "item": "cangun", "count": [ 0, 1 ] } ]
},
Expand All @@ -43,7 +42,6 @@
"color": "dark_gray",
"broken_color": "dark_gray",
"difficulty": 5,
"location": "on_roof",
"range": 15,
"folded_volume": 15,
"breaks_into": [ { "item": "gattler", "count": [ 0, 1 ] } ]
Expand All @@ -57,7 +55,6 @@
"color": "blue",
"broken_color": "blue",
"difficulty": 6,
"location": "on_roof",
"folded_volume": 12,
"breaks_into": [ { "item": "lasgun", "count": [ 0, 1 ] } ]
},
Expand All @@ -70,7 +67,6 @@
"color": "blue",
"broken_color": "blue",
"difficulty": 6,
"location": "on_roof",
"folded_volume": 12,
"breaks_into": [ { "item": "lasgun", "count": [ 0, 1 ] } ]
},
Expand All @@ -83,7 +79,6 @@
"color": "magenta",
"broken_color": "magenta",
"difficulty": 6,
"location": "on_roof",
"folded_volume": 18,
"breaks_into": [ { "item": "lasgunx", "count": [ 0, 1 ] } ]
},
Expand All @@ -97,7 +92,6 @@
"color": "dark_gray",
"broken_color": "dark_gray",
"difficulty": 5,
"location": "on_roof",
"durability": 400,
"power": -5,
"range": 12,
Expand All @@ -114,7 +108,6 @@
"color": "red",
"broken_color": "red",
"difficulty": 4,
"location": "on_roof",
"range": 12,
"folded_volume": 19,
"breaks_into": [ { "item": "rm451_flamethrower", "count": [ 0, 1 ] } ],
Expand All @@ -129,7 +122,6 @@
"color": "dark_gray",
"broken_color": "dark_gray",
"difficulty": 5,
"location": "on_roof",
"folded_volume": 10,
"breaks_into": [ { "item": "nailer", "count": [ 0, 1 ] } ]
},
Expand All @@ -142,7 +134,6 @@
"color": "blue",
"broken_color": "blue",
"difficulty": 5,
"location": "on_roof",
"folded_volume": 15,
"breaks_into": [ { "item": "needler", "count": [ 0, 1 ] } ]
},
Expand All @@ -155,7 +146,6 @@
"color": "magenta",
"broken_color": "magenta",
"difficulty": 5,
"location": "on_roof",
"range": 14,
"folded_volume": 16,
"breaks_into": [ { "item": "railturret", "count": [ 0, 1 ] } ]
Expand All @@ -170,7 +160,6 @@
"color": "dark_gray",
"broken_color": "dark_gray",
"difficulty": 5,
"location": "on_roof",
"durability": 400,
"power": -25,
"range": 15,
Expand All @@ -184,7 +173,6 @@
"type": "vehicle_part",
"name": "manual rotary speargun",
"item": "rslauncher",
"location": "on_roof",
"color": "light_gray",
"broken_color": "light_gray",
"difficulty": 5,
Expand All @@ -200,7 +188,6 @@
"color": "brown",
"broken_color": "brown",
"difficulty": 4,
"location": "on_roof",
"folded_volume": 20,
"breaks_into": [ { "item": "scorpion", "count": [ 0, 1 ] } ]
},
Expand All @@ -213,7 +200,6 @@
"color": "blue",
"broken_color": "blue",
"difficulty": 6,
"location": "on_roof",
"folded_volume": 14,
"breaks_into": [ { "item": "shardgun", "count": [ 0, 1 ] } ]
},
Expand All @@ -226,7 +212,6 @@
"color": "light_gray",
"broken_color": "light_gray",
"difficulty": 3,
"location": "on_roof",
"folded_volume": 12,
"breaks_into": [ { "item": "slauncher", "count": [ 0, 1 ] } ]
},
Expand All @@ -239,7 +224,6 @@
"color": "blue",
"broken_color": "blue",
"difficulty": 3,
"location": "on_roof",
"folded_volume": 15,
"breaks_into": [ { "item": "teslagun", "count": [ 0, 1 ] } ]
},
Expand All @@ -252,7 +236,6 @@
"color": "light_gray",
"broken_color": "light_gray",
"difficulty": 4,
"location": "on_roof",
"folded_volume": 15,
"breaks_into": [ { "item": "tiharturret", "count": [ 0, 1 ] } ]
}
Expand Down

0 comments on commit e7cbb32

Please sign in to comment.