Skip to content

Commit 4eafba1

Browse files
authored
Merge pull request #82105 from ehughsbaird/variant-copy-from
Allow copy-from to copy for some itype members
2 parents 28f0ad3 + 6b18f6b commit 4eafba1

21 files changed

+107
-9
lines changed

data/json/artifact/artifact_item_types.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@
234234
"subtypes": [ "ARMOR" ],
235235
"copy-from": "coat_fur",
236236
"name": { "str": "ornate fur coat" },
237-
"description": "A heavy, finely crafted coat made of the fur of an unidentifiable creature. It is the only one of its kind.\nIt may have unknown powers; try activating them."
237+
"description": "A heavy, finely crafted coat made of the fur of an unidentifiable creature. It is the only one of its kind.\nIt may have unknown powers; try activating them.",
238+
"//": "remove fur coat variants",
239+
"variants": [ ]
238240
},
239241
{
240242
"id": "art_mask",

data/json/items/armor/ammo_pouch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@
208208
"subtypes": [ "ARMOR" ],
209209
"copy-from": "chestrig",
210210
"name": { "str": "chest rig" },
211+
"//": "delete chest rig variants",
212+
"variants": [ ],
211213
"proportional": { "weight": 1.25, "volume": 1.13, "price": 1.25 },
212214
"extend": { "flags": [ "OVERSIZE", "PREFIX_XL" ] }
213215
},
@@ -217,6 +219,8 @@
217219
"subtypes": [ "ARMOR" ],
218220
"copy-from": "chestrig",
219221
"name": { "str": "chest rig" },
222+
"//": "delete chest rig variants",
223+
"variants": [ ],
220224
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
221225
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
222226
},

data/json/items/armor/ballistic_armor.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,8 @@
12621262
"subtypes": [ "ARMOR" ],
12631263
"copy-from": "soft_3a_vest",
12641264
"name": { "str": "FBI ballistic vest" },
1265+
"//variants": "delete security vest variants",
1266+
"variants": [ ],
12651267
"//": "Based on the exact model; https://www.tyrtactical.com/shop/tyr-tactical-male-epic-federal-outer-carrier/",
12661268
"description": "A ranger green soft ballistic vest with MOLLE rigging used by federal law enforcement agencies. Soft armor plates inside the vest provide solid defense against shrapnel and small-caliber rounds. \"FBI\" is emblazoned across the front and back in large, yellow lettering, and it includes a pocket for storing evidence. Use it to attach or detach pouches.",
12671269
"use_action": [ { "type": "attach_molle", "size": 6 }, { "type": "detach_molle" } ]

data/json/items/armor/coats.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@
213213
"type": "ITEM",
214214
"subtypes": [ "ARMOR" ],
215215
"name": { "str": "fur coat" },
216+
"//": "delete fur coat variants, this is survivor made",
217+
"variants": [ ],
216218
"copy-from": "coat_fur",
217219
"proportional": { "weight": 1.125, "volume": 1.13, "price": 1.25 },
218220
"extend": { "flags": [ "OVERSIZE", "PREFIX_XL" ] }
@@ -223,6 +225,8 @@
223225
"subtypes": [ "ARMOR" ],
224226
"copy-from": "coat_fur",
225227
"name": { "str": "fur coat" },
228+
"//": "delete fur coat variants, this is survivor made",
229+
"variants": [ ],
226230
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
227231
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
228232
},
@@ -234,6 +238,8 @@
234238
"looks_like": "coat_fur",
235239
"name": { "str": "faux fur coat" },
236240
"description": "A garishly-colored faux fur coat with a couple small pockets. Although not as warm as natural fur, it gives you some of that unique flair.",
241+
"//": "delete fur coat variants",
242+
"variants": [ ],
237243
"material": [ "faux_fur", "cotton" ],
238244
"color": "pink",
239245
"flags": [ "VARSIZE", "POCKETS", "OUTER" ],

data/json/items/armor/legs_clothes.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,8 @@
365365
"proportional": { "weight": 2.2 },
366366
"name": { "str_sp": "leather hot pants" },
367367
"description": "A simple pair of leather short shorts.",
368+
"//": "delete hot pants variants",
369+
"variants": [ ],
368370
"material": [ "leather" ],
369371
"looks_like": "hot_pants",
370372
"color": "brown",
@@ -379,6 +381,8 @@
379381
"proportional": { "weight": 2.2 },
380382
"name": { "str_sp": "fur hot pants" },
381383
"description": "A simple pair of fur short shorts.",
384+
"//": "delete hot pants variants",
385+
"variants": [ ],
382386
"material": [ "fur" ],
383387
"looks_like": "hot_pants_leather",
384388
"color": "brown",

data/json/items/armor/masks.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
"category": "armor",
4242
"name": { "str": "cut-resistant balaclava" },
4343
"description": "A face covering that helps protect from slashes and cuts, in addition to the cold.",
44+
"//": "delete balclava :) variants",
45+
"variants": [ ],
4446
"copy-from": "balclava",
4547
"price": "76 USD",
4648
"material": [ "kevlar" ]

data/json/items/armor/suits_clothes.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@
261261
"subtypes": [ "ARMOR" ],
262262
"name": { "str": "flag jumpsuit" },
263263
"description": "A jumpsuit embroidered with a pattern of the American flag. Provides decent storage and is not very encumbering.",
264+
"//": "delete jumpsuit variants",
265+
"variants": [ ],
264266
"color": "light_red"
265267
},
266268
{
@@ -424,6 +426,8 @@
424426
"copy-from": "jumpsuit",
425427
"name": { "str": "jumpsuit" },
426428
"description": "A thin, short-sleeved jumpsuit; similar to those worn by prisoners. Provides decent storage and is not very encumbering.",
429+
"//": "delete jumpsuit variants",
430+
"variants": [ ],
427431
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
428432
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
429433
},
@@ -434,6 +438,8 @@
434438
"copy-from": "jumpsuit",
435439
"name": { "str": "skeleton jumpsuit" },
436440
"description": "A black jumpsuit with a skeleton pattern printed on it. It can be zipped all the way up to cover your head and face in a skull pattern too. Use it to zip the head portion closed.",
441+
"//": "delete jumpsuit variants",
442+
"variants": [ ],
437443
"weight": "939 g",
438444
"volume": "3500 ml",
439445
"price": "95 USD",

data/json/items/armor/torso_clothes.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@
775775
"subtypes": [ "ARMOR" ],
776776
"name": { "str": "pocket shirt" },
777777
"description": "A white button-down shirt with long sleeves and a pocket on the front. Looks professional!",
778+
"//": "delete button shirt variants",
779+
"variants": [ ],
778780
"pocket_data": [
779781
{
780782
"pocket_type": "CONTAINER",

data/json/items/armor/undergarment.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@
305305
"subtypes": [ "ARMOR" ],
306306
"copy-from": "binder_top",
307307
"name": { "str": "binder" },
308+
"//": "delete binder variants, this is survivor made",
309+
"variants": [ ],
308310
"proportional": { "weight": 1.5, "volume": 1.5, "price": 1.25 },
309311
"extend": { "flags": [ "OVERSIZE", "PREFIX_XL" ] }
310312
},
@@ -314,6 +316,8 @@
314316
"subtypes": [ "ARMOR" ],
315317
"copy-from": "binder_top",
316318
"name": { "str": "binder" },
319+
"//": "delete binder variants, this is survivor made",
320+
"variants": [ ],
317321
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
318322
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
319323
},
@@ -378,6 +382,8 @@
378382
"type": "ITEM",
379383
"subtypes": [ "ARMOR" ],
380384
"name": { "str": "boxer briefs", "str_pl": "pairs of boxer briefs" },
385+
"//": "delete boxer variants, this is survivor made",
386+
"variants": [ ],
381387
"weight": "50 g",
382388
"volume": "350 ml",
383389
"copy-from": "boxer_briefs",
@@ -389,6 +395,8 @@
389395
"subtypes": [ "ARMOR" ],
390396
"copy-from": "boxer_briefs",
391397
"name": { "str": "boxer briefs", "str_pl": "pairs of boxer briefs" },
398+
"//": "delete boxer variants, this is survivor made",
399+
"variants": [ ],
392400
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
393401
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
394402
},
@@ -484,6 +492,8 @@
484492
"type": "ITEM",
485493
"subtypes": [ "ARMOR" ],
486494
"name": { "str": "boxer shorts", "str_pl": "pairs of boxer shorts" },
495+
"//": "delete boxer variants, this is survivor made",
496+
"variants": [ ],
487497
"weight": "72 g",
488498
"volume": "500 ml",
489499
"copy-from": "boxer_shorts",
@@ -495,6 +505,8 @@
495505
"subtypes": [ "ARMOR" ],
496506
"copy-from": "boxer_shorts",
497507
"name": { "str": "boxer shorts", "str_pl": "pairs of boxer shorts" },
508+
"//": "delete boxer variants, this is survivor made",
509+
"variants": [ ],
498510
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
499511
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
500512
},
@@ -540,6 +552,8 @@
540552
"type": "ITEM",
541553
"subtypes": [ "ARMOR" ],
542554
"name": { "str": "boy shorts", "str_pl": "pairs of boy shorts" },
555+
"//": "delete boy shorts variants, this is survivor made",
556+
"variants": [ ],
543557
"weight": "72 g",
544558
"volume": "500 ml",
545559
"copy-from": "boy_shorts",
@@ -551,6 +565,8 @@
551565
"subtypes": [ "ARMOR" ],
552566
"copy-from": "boy_shorts",
553567
"name": { "str": "boy shorts", "str_pl": "pairs of boy shorts" },
568+
"//": "delete boy shorts variants, this is survivor made",
569+
"variants": [ ],
554570
"proportional": { "weight": 0.75, "volume": 0.75, "price": 0.5 },
555571
"extend": { "flags": [ "UNDERSIZE", "PREFIX_XS" ] }
556572
},

data/json/items/containers/ammo_boxes.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"color": "brown",
1414
"looks_like": "box_small",
1515
"variant_type": "generic",
16+
"//": "These variants must remain 0 weight, as most ammo boxes copy from this and inherit variants",
1617
"variants": [
1718
{
1819
"id": "22lr_ammo_box_50",

0 commit comments

Comments
 (0)