frontiermods / armory Goto Github PK
View Code? Open in Web Editor NEWArmory expands your character's choice of military, riot, police, and militia outfits and equipment
License: MIT License
Armory expands your character's choice of military, riot, police, and militia outfits and equipment
License: MIT License
In Relation to this: https://github.com/FrontierMods/Armory/blob/main/documentation/DESIRED_FEATURES.md#required-gunmods-for-holsters
You can have holsters only store an item if they have a flag, & you can give a gun a flag if they're modded (I.E. Bayonets).
This bayonet adds the flags below:
EX:
{
"id": "knife_combat_marine",
"type": "TOOL",
"category": "weapons",
"name": { "str": "USMC bayonet" },
"description": "A modern bayonet in use with the US Marine Corps, adopted in an effort to improve USMC hand-to-hand fighting capabilities. The bayonet is optimized to function as a fighting knife, sporting an ergonomic handle that will minimize hand fatigue during combat. The blade tip is sharper in profile than other bayonets to assist in penetrating body armor, and also features a small serrated section to provide for some utility.",
"//": "Modelled after the OKC3S bayonet.",
"weight": "405 g",
"volume": "260 ml",
"longest_side": "34 cm",
"price": 10000,
"price_postapoc": 1250,
"to_hit": { "grip": "weapon", "length": "hand", "surface": "point", "balance": "good" },
"material": [ "hc_steel", "plastic" ],
"symbol": ";",
"color": "dark_gray",
"gunmod_data": {
"location": "bayonet lug",
"mod_targets": [ "pistol", "smg", "rifle", "shotgun", "launcher", "crossbow" ],
"is_bayonet": true,
"install_time": "5 s"
},
"min_skills": [ [ "weapon", 2 ], [ "melee", 1 ] ],
"techniques": [ "RAPID" ],
"qualities": [ [ "CUT", 2 ], [ "SAW_W", 1 ], [ "CUT_FINE", 1 ], [ "BUTCHER", 19 ] ],
"thrown_damage": [ { "damage_type": "stab", "amount": 14 } ],
"flags": [
"DURABLE_MELEE",
"SHEATH_KNIFE",
"NPC_THROWN",
"ALLOWS_BODY_BLOCK",
"PUMP_RAIL_COMPATIBLE",
"NO_SALVAGE",
"CONDUCTIVE"
],
"weapon_category": [ "KNIVES" ],
"melee_damage": { "stab": 22 }
},
This axe ring only allows items w/ the SHEATH_AXE flag:
[
{
"id": "axe_ring",
"type": "ARMOR",
"name": { "str": "axe ring holster" },
"description": "A combination of leather and a metal ring to hold an axe on your waist.",
"weight": "180 g",
"volume": "600 ml",
"price": 3000,
"price_postapoc": 250,
"material": [ "leather", "steel" ],
"symbol": "[",
"looks_like": "sheath",
"color": "brown",
"material_thickness": 1,
"pocket_data": [
{
"moves": 30,
"max_contains_volume": "3250 ml",
"max_contains_weight": "5 kg",
"max_item_length": "100 cm",
"holster": true,
"flag_restriction": [ "SHEATH_AXE" ],
"volume_encumber_modifier": 0.3
}
],
"use_action": { "type": "holster", "holster_prompt": "Sheath axe", "holster_msg": "You sheath your %s" },
"flags": [ "NONCONDUCTIVE", "BELTED", "BELT_CLIP", "OVERSIZE", "WATER_FRIENDLY" ],
"armor": [ { "encumbrance": 0, "coverage": 50, "covers": [ "torso" ], "specifically_covers": [ "torso_waist" ] } ]
},
In order to make the holster only contain the gun w/ the mod, & not the mod itself, make the min vol/length slightly bigger than the mod itself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.