Skip to content

Commit

Permalink
Construction Bag (new-frontiers-14#1487)
Browse files Browse the repository at this point in the history
* initial commit

* Un Tag

* fixes

* no tickets

* research thingy

* inflatable walls, shared.comp

---------

Co-authored-by: Dvir <[email protected]>
  • Loading branch information
ErhardSteinhauer and dvir001 authored Jun 11, 2024
1 parent df97e8b commit 3d61b18
Show file tree
Hide file tree
Showing 28 changed files with 276 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Content.Server.Materials.Components;

[RegisterComponent]
public sealed partial class ConstructionMaterialsComponent : Component
{

}
3 changes: 2 additions & 1 deletion Resources/Locale/en-US/_NF/research/technologies.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ research-technology-hardsuits-advanced = Advanced Hardsuits
research-technology-hardsuits-experimental-industrial = Experimental Salvager Hardsuit
research-technology-hardsuits-armored = Armored Hardsuits
research-technology-hardsuits-armored-advanced = Advanced Armored Hardsuits
research-technology-hardsuits-experimental-rd = Experimental Research Hardsuit
research-technology-hardsuits-experimental-rd = Experimental Research Hardsuit
research-technology-construction-bags = Construction Bags
6 changes: 6 additions & 0 deletions Resources/Prototypes/Entities/Objects/Materials/materials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
name: cloth
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Healing
damageContainers:
- Biological
Expand Down Expand Up @@ -161,6 +162,7 @@
name: durathread
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Stack
stackType: Durathread
baseLayer: base
Expand Down Expand Up @@ -219,6 +221,7 @@
name: wood
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Material
- type: PhysicalComposition
materialComposition:
Expand Down Expand Up @@ -485,6 +488,7 @@
name: bananium
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Material
- type: PhysicalComposition
materialComposition:
Expand Down Expand Up @@ -546,6 +550,7 @@
description: A webby material.
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: PhysicalComposition
materialComposition:
WebSilk: 100
Expand Down Expand Up @@ -602,6 +607,7 @@
name: bones
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Material # Frontier
- type: PhysicalComposition # Frontier
materialComposition: # Frontier
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Objects/Materials/parts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
Quantity: 4.5
- ReagentId: Carbon
Quantity: 0.5
- type: ConstructionMaterials # Frontier

- type: entity
parent: PartRodMetal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
description: A folded membrane which rapidly expands into a large cubical shape on activation.
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Stack
stackType: InflatableWall
count: 10
Expand Down Expand Up @@ -33,6 +34,7 @@
description: A folded membrane which rapidly expands into a large cubical shape on activation.
suffix: Full
components:
- type: ConstructionMaterials # Frontier
- type: Stack
stackType: InflatableDoor
count: 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
- ClothingOuterHardsuitMaximPrototype # Frontier
- ClothingHeadHelmetAncient # Frontier
- ClothingOuterHardsuitAncientEVA # Frontier
- ConstructionBagOfHolding # Frontier
- type: EmagLatheRecipes
emagDynamicRecipes:
- ExplosivePayload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,23 +245,24 @@
- WeaponCapacitorRechargerCircuitboard
- Durathread
- Plasteel
- ClothingOuterSuitEmergency
- ClothingHeadHelmetEVA
- ClothingHeadHelmetEVALarge
- ClothingOuterHardsuitEVA
- ClothingOuterSuitEmergency # Frontier
- ClothingHeadHelmetEVA # Frontier
- ClothingHeadHelmetEVALarge # Frontier
- ClothingOuterHardsuitEVA # Frontier
# Engi fab has shuttle power and tech at base
- SolarControlComputerCircuitboard
- SolarTrackerElectronics
- ShuttleConsoleCircuitboard
- PortableGeneratorPacmanMachineCircuitboard
- PortableGeneratorSuperPacmanMachineCircuitboard
- PortableGeneratorJrPacmanMachineCircuitboard
- ThrusterMachineCircuitboard
- GyroscopeMachineCircuitboard
- MiniGravityGeneratorCircuitboard
- SolarControlComputerCircuitboard # Frontier
- SolarTrackerElectronics # Frontier
- ShuttleConsoleCircuitboard # Frontier
- PortableGeneratorPacmanMachineCircuitboard # Frontier
- PortableGeneratorSuperPacmanMachineCircuitboard # Frontier
- PortableGeneratorJrPacmanMachineCircuitboard # Frontier
- ThrusterMachineCircuitboard # Frontier
- GyroscopeMachineCircuitboard # Frontier
- MiniGravityGeneratorCircuitboard # Frontier
- ConstructionBag # Frontier
- SmallThrusterMachineCircuitboard # Frontier
- SmallGyroscopeMachineCircuitboard # Frontier
- WallmountSubstationElectronics
- WallmountSubstationElectronics # Frontier
# Frontier end
dynamicRecipes:
- Flash
Expand Down Expand Up @@ -306,14 +307,13 @@
- CableStack
- CableMVStack
- CableHVStack
# Frontier Start
- ClothingOuterHardsuitBasic
- ClothingOuterHardsuitAtmos
- ClothingOuterHardsuitEngineering
- ClothingOuterHardsuitEngineeringWhite
- ClothingHeadHelmetAncient
- ClothingOuterHardsuitAncientEVA
# Frontier end
- ClothingOuterHardsuitBasic # Frontier
- ClothingOuterHardsuitAtmos # Frontier
- ClothingOuterHardsuitEngineering # Frontier
- ClothingOuterHardsuitEngineeringWhite # Frontier
- ClothingHeadHelmetAncient # Frontier
- ClothingOuterHardsuitAncientEVA # Frontier
- ConstructionBagOfHolding # Frontier
- type: MaterialStorage
whitelist:
tags:
Expand All @@ -324,7 +324,5 @@
- Glass
- Plastic
- Steel
# Frontier Start
- Gold
- Silver
# Frontier End
- Gold # Frontier
- Silver # Frontier
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
- type: entity
parent: BaseStorageItem
id: ConstructionBag
name: construction bag
description: A robust bag for construction specialists and engineers alike to carry large amounts of construction materials. Magnetises any nearby construction materials when attached to a belt.
components:
- type: MagnetPickup
- type: Sprite
sprite: _NF/Objects/Specific/Engineering/construction_bag.rsi
state: icon
- type: Clothing
sprite: _NF/Objects/Specific/Engineering/construction_bag.rsi
quickEquip: false
slots:
- belt
- type: Item
size: Ginormous
- type: Storage
maxItemSize: Normal
grid:
- 0,0,9,3
quickInsert: true
areaInsert: true
whitelist:
tags:
- Ingot
- RodMetal1
- Sheet
- CableCoil
components:
- ConstructionMaterials
blacklist:
tags:
- PrizeTicket
- type: Dumpable
- type: StaticPrice
price: 55.5

- type: entity
parent: ConstructionBag
id: ConstructionBagOfHolding
name: construction bag of holding
description: A robust bag of holding for rich construction specialists and engineers alike to carry large amounts of construction materials. Magnetises any nearby construction materials when attached to a belt.
components:
- type: MagnetPickup
range: 2
- type: Sprite
sprite: _NF/Objects/Specific/Engineering/construction_bag.rsi
layers:
- state: icon
- state: icon-bluespace-overlay
- state: icon-bluespace-overlay-unshaded
shader: unshaded
- type: Item
size: Ginormous
inhandVisuals:
left:
- state: inhand-left
- state: inhand-left-bluespace-overlay
- state: inhand-left-bluespace-overlay-unshaded
shader: unshaded
right:
- state: inhand-right
- state: inhand-right-bluespace-overlay
- state: inhand-right-bluespace-overlay-unshaded
shader: unshaded
- type: Clothing
sprite: _NF/Objects/Specific/Engineering/construction_bag.rsi
quickEquip: false
slots:
- belt
clothingVisuals:
belt:
- state: equipped-BELT
- state: equipped-BELT-bluespace-overlay
- state: equipped-BELT-bluespace-overlay-unshaded
shader: unshaded
- type: Storage
grid:
- 0,0,19,9
13 changes: 13 additions & 0 deletions Resources/Prototypes/_NF/Loadouts/Jobs/Contractor/belt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,19 @@
equipment:
belt: PlantBag

- type: loadout
id: ContractorConstructionBag
equipment: ContractorConstructionBag
effects:
- !type:GroupLoadoutEffect
proto: ContractorT1
price: 750

- type: startingGear
id: ContractorConstructionBag
equipment:
belt: ConstructionBag

#T2
- type: loadout
id: ContractorClothingBeltMartialBlack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@
- ContractorChemBag
- ContractorOreBag
- ContractorPlantBag
- ContractorConstructionBag
- ContractorClothingBeltMartialBlack
- ContractorClothingBeltChampion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,5 +649,6 @@
- ContractorChemBag
- ContractorOreBag
- ContractorPlantBag
- ContractorConstructionBag
- ContractorClothingBeltMartialBlack
- ContractorClothingBeltChampion
1 change: 1 addition & 0 deletions Resources/Prototypes/_NF/Loadouts/pilot_loadout_groups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -626,5 +626,6 @@
- ContractorChemBag
- ContractorOreBag
- ContractorPlantBag
- ContractorConstructionBag
- ContractorClothingBeltMartialBlack
- ContractorClothingBeltChampion
10 changes: 10 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/devices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
Plasma: 1500
Uranium: 150

- type: latheRecipe
id: ConstructionBagOfHolding
result: ConstructionBagOfHolding
completetime: 5
materials:
Steel: 2000
Silver: 750
Plasma: 1500
Uranium: 150

- type: latheRecipe
id: WeaponCrusher
result: WeaponCrusher
Expand Down
9 changes: 9 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,12 @@
materials:
Steel: 500
Cloth: 500

- type: latheRecipe
id: ConstructionBag
result: ConstructionBag
completetime: 1
category: Tools
materials:
Steel: 500
Cloth: 500
12 changes: 12 additions & 0 deletions Resources/Prototypes/_NF/Research/industrial.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Tier 1

- type: technology
id: ConstructionBags
name: research-technology-construction-bags
icon:
sprite: _NF/Objects/Specific/Engineering/construction_bag.rsi
state: icon
discipline: Industrial
tier: 1
cost: 5000
recipeUnlocks:
- ConstructionBagOfHolding

- type: technology
id: HardsuitsBasic
name: research-technology-hardsuits-basic
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3d61b18

Please sign in to comment.