Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-station-14 into smuggling-buff
  • Loading branch information
whatston3 committed Sep 21, 2024
2 parents 1370ab8 + 1dda632 commit 6eb6974
Show file tree
Hide file tree
Showing 209 changed files with 2,585 additions and 316 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Salvage/SalvageSystem.ExpeditionConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private void OnSalvageFinishMessage(EntityUid entity, SalvageExpeditionConsoleCo
continue;

// NPC, definitely not a person
if (HasComp<ActiveNPCComponent>(uid) || HasComp<SalvageMobRestrictionsNFComponent>(uid))
if (HasComp<ActiveNPCComponent>(uid) || HasComp<NFSalvageMobRestrictionsComponent>(uid))
continue;

// Hostile ghost role, continue
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Worldgen/Systems/LocalityLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private void OnDebrisDespawn(EntityUid entity, SpaceDebrisComponent component, E
if (entity != null)
{
// Handle mobrestrictions getting deleted
var query = AllEntityQuery<SalvageMobRestrictionsNFComponent>();
var query = AllEntityQuery<NFSalvageMobRestrictionsComponent>();

while (query.MoveNext(out var salvUid, out var salvMob))
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Maths;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
using System;

namespace Content.Server._NF.Salvage;

/// <summary>
Expand All @@ -14,9 +8,15 @@ namespace Content.Server._NF.Salvage;
/// whatever it's currently parented to.
/// </summary>
[RegisterComponent]
public sealed partial class SalvageMobRestrictionsNFComponent : Component
public sealed partial class NFSalvageMobRestrictionsComponent : Component
{
[ViewVariables(VVAccess.ReadOnly)]
[DataField("linkedGridEntity")]
[DataField, ViewVariables(VVAccess.ReadOnly)]
public EntityUid LinkedGridEntity = EntityUid.Invalid;

/// <summary>
/// If set to false, this mob will not be despawned when its linked entity is despawned.
/// Useful for event ghost roles, for instance.
/// </summary>
[DataField]
public bool DespawnIfOffLinkedGrid = true;
}
8 changes: 4 additions & 4 deletions Content.Server/_NF/Salvage/SalvageMobRestrictionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<SalvageMobRestrictionsNFComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<SalvageMobRestrictionsNFComponent, ComponentRemove>(OnRemove);
SubscribeLocalEvent<NFSalvageMobRestrictionsComponent, ComponentInit>(OnInit);
SubscribeLocalEvent<NFSalvageMobRestrictionsComponent, ComponentRemove>(OnRemove);
SubscribeLocalEvent<SalvageMobRestrictionsGridComponent, ComponentRemove>(OnRemoveGrid);
}

private void OnInit(EntityUid uid, SalvageMobRestrictionsNFComponent component, ComponentInit args)
private void OnInit(EntityUid uid, NFSalvageMobRestrictionsComponent component, ComponentInit args)
{
var gridUid = Transform(uid).ParentUid;
if (!EntityManager.EntityExists(gridUid))
Expand All @@ -38,7 +38,7 @@ private void OnInit(EntityUid uid, SalvageMobRestrictionsNFComponent component,
component.LinkedGridEntity = gridUid;
}

private void OnRemove(EntityUid uid, SalvageMobRestrictionsNFComponent component, ComponentRemove args)
private void OnRemove(EntityUid uid, NFSalvageMobRestrictionsComponent component, ComponentRemove args)
{
if (TryComp(component.LinkedGridEntity, out SalvageMobRestrictionsGridComponent? rg))
{
Expand Down
12 changes: 11 additions & 1 deletion Content.Server/_NF/StationEvents/Events/BluespaceErrorRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,20 @@ protected override void Ended(EntityUid uid, BluespaceErrorRuleComponent compone
var gridValue = _pricing.AppraiseGrid(gridUid, null);

// Handle mobrestrictions getting deleted
var query = AllEntityQuery<SalvageMobRestrictionsNFComponent>();
var query = AllEntityQuery<NFSalvageMobRestrictionsComponent>();

while (query.MoveNext(out var salvUid, out var salvMob))
{
if (!salvMob.DespawnIfOffLinkedGrid)
{
var transform = Transform(salvUid);
if (transform.GridUid != salvMob.LinkedGridEntity)
{
RemComp<NFSalvageMobRestrictionsComponent>(salvUid);
continue;
}
}

if (gridTransform.GridUid == salvMob.LinkedGridEntity)
{
QueueDel(salvUid);
Expand Down
39 changes: 39 additions & 0 deletions Resources/Changelog/Changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7124,3 +7124,42 @@ Entries:
message: Fixed NT Vagabond's issues.
id: 5291
time: '2024-09-20T16:52:33.0000000+00:00'
- author: erhardsteinhauer
changes:
- type: Add
message: Added recipes for crossbow and bolt to mercenary techfab.
- type: Add
message: Added ability to craft hand crossbows by using a saw on full-sized one.
- type: Add
message: >-
Added more craftable crossbow bolts: syringe, armor-piercing
(C3-contraband), incendiary (C3-contraband).
- type: Add
message: >-
Added to crossbows the ability to use wooden stakes, plungers, bread and
mail capsules as projectiles.
- type: Tweak
message: >-
Bolts and crossbows can be recycled and bolts take damage on impact: a
regular bolt should be good for 5-6 uses, however specialized ones
(like, syringe-bolt or incendiary) shatter after single use.
- type: Tweak
message: Bolts can now draw solutions directly from puddles and containers.
- type: Tweak
message: Crossbows can be used to perform melee attacks.
id: 5292
time: '2024-09-20T20:13:08.0000000+00:00'
- author: arimah
changes:
- type: Remove
message: Removed the SBI Crown pending a complete rework.
id: 5293
time: '2024-09-20T20:59:11.0000000+00:00'
- author: dustylens
changes:
- type: Add
message: >-
Adds avocado and cucumber plants in addition to new supported recipes
and reagents.
id: 5294
time: '2024-09-20T21:52:42.0000000+00:00'
5 changes: 4 additions & 1 deletion Resources/Locale/en-US/_NF/flavors/flavor-profiles.ftl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
flavor-base-basic = basic
flavor-base-earthy = earthy
flavor-complex-avocado = like avocado
flavor-complex-cucumber = crisp and refreshing
flavor-complex-fast = fast
flavor-complex-greed = like greed
flavor-complex-blast = like jungle warfare
flavor-complex-torpedo = like convoy raiding
flavor-complex-bees = like buzzing and honey
flavor-base-earthy = earthy
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ reagent-desc-pineapple-blast = For when the trees start talking. Smells tropical
reagent-name-torpedo-juice = torpedo juice
reagent-desc-torpedo-juice = The joys of drinking and unrestricted submarine warfare combined! Has a strong alcoholic smell.
reagent-name-bees-knees = bee’s knees
reagent-desc-bees-knees = BEEEEEEEEEEEEEEES!!! Has a stingy smell.
reagent-name-bees-knees = bee's knees
reagent-desc-bees-knees = BEEEEEEEEEEEEEEES!!! Has a stingy smell.
reagent-name-cucumber-water = cucumber water
reagent-desc-cucumber-water = The fanciest of waters.
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
reagent-name-coffeegrounds = coffee grounds
reagent-desc-coffeegrounds = Aromatic and richly textured, these grounds exude a robust scent that promises a flavorful brew.
reagent-name-oil-vegetable = vegetable oil
reagent-desc-oil-vegetable = It's made from vegetables, that means it's healthy, right?
4 changes: 4 additions & 0 deletions Resources/Locale/en-US/_NF/seeds/seeds.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ seeds-pear-name = pear
seeds-pear-display-name = pear trees
seeds-coffee-name = coffee
seeds-coffee-display-name = coffee plants
seeds-avocado-name = avocado
seeds-avocado-display-name = avocado plants
seeds-cucumber-name = cucumber
seeds-cucumber-display-name = cucumber plants
# Missing upstream definitions
seeds-lemoon-display-name = lemoon trees
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/Outpost/frontier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33375,7 +33375,7 @@ entities:
- type: Transform
pos: -5.5,13.5
parent: 2173
- proto: VendingMachineCart
- proto: NFVendingMachineCart
entities:
- uid: 1211
components:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/POI/nfsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15415,7 +15415,7 @@ entities:
- type: Transform
pos: -4.5,-3.5
parent: 1
- proto: VendingMachineCartNfsd
- proto: NFVendingMachineCartNfsd
entities:
- uid: 934
components:
Expand Down
50 changes: 15 additions & 35 deletions Resources/Prototypes/Catalog/VendingMachines/Inventories/cart.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,18 @@
- type: vendingMachineInventory
id: PTechInventory
startingInventory:
ContractorPDA: 5 # Frontier: PassengerPDA<ContractorPDA
ClearNFPDA: 5 # Frontier: ClearPDA<ClearNFPDA
MusicianPDA: 3 # Frontier
MedicalPDA: 3 # Frontier
SecurityGuardPDA: 3 # Frontier
ContractorIDCard: 10 # Frontier: Passenger<Contractor, 5<10
ClothingHeadsetGrey: 10 # Frontier 5<10
RubberStampStc: 1 # Frontier
RubberStampCaptain: 10 # Frontier
RubberStampApproved: 3 # Frontier 1<3
RubberStampDenied: 3 # Frontier 1<3
Pen: 10 # Frontier
# Paper: 10 # Frontier
# Envelope: 10 # Frontier
BoxPaper: 4 # Frontier
BoxPaperOffice: 4 # Frontier
BoxPaperCaptainsThoughts: 4 # Frontier
BoxEnvelope: 4 # Frontier
BoxFolderClipboard: 3 # Frontier
BoxFolderBlue: 3 # Frontier
BoxFolderRed: 3 # Frontier
BoxFolderYellow: 3 # Frontier
HandLabeler: 3 # Frontier
BrbSign: 3 # Frontier
DeskBell: 3 # Frontier
EncryptionKeyCommand: 3 # Frontier
EncryptionKeySecurity: 10 # Frontier 1<10
EncryptionKeyNfsd: 10 # Frontier
EncryptionKeyCargo: 20 # Frontier 2<20
EncryptionKeyEngineering: 20 # Frontier 2<20
EncryptionKeyMedical: 20 # Frontier 2<20
EncryptionKeyScience: 20 # Frontier 2<20
EncryptionKeyCommon: 30 # Frontier
EncryptionKeyService: 30 # Frontier 3<30
EncryptionKeyTraffic: 30 # Frontier
PassengerPDA: 5
ClearPDA: 5
PassengerIDCard: 5
ClothingHeadsetGrey: 5
RubberStampApproved: 1
RubberStampDenied: 1
Paper: 10
Envelope: 10
HandLabeler: 2
EncryptionKeyCargo: 2
EncryptionKeyEngineering: 2
EncryptionKeyMedical: 2
EncryptionKeyScience: 2
EncryptionKeySecurity: 1
EncryptionKeyService: 3
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
AloeSeeds: 3
AmbrosiaVulgarisSeeds: 3
AppleSeeds: 5
AvocadoSeeds: 5 # Frontier
BananaSeeds: 5
BerrySeeds: 5
CarrotSeeds: 5
Expand All @@ -14,6 +15,7 @@
CoffeeSeeds: 5 # Frontier
CornSeeds: 5
CottonSeeds: 5
CucumberSeeds: 5 # Frontier
EggplantSeeds: 5
EggySeeds: 5
GalaxythistleSeeds: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@
- id: FoodCoffee # Frontier
amount: !type:RangeNumberSelector # Frontier
range: 1, 5 # Frontier
- id: FoodAvocado # Frontier
amount: !type:RangeNumberSelector # Frontier
range: 1, 5 # Frontier
- id: FoodCucumber # Frontier
amount: !type:RangeNumberSelector # Frontier
range: 1, 5 # Frontier
#rare
- !type:GroupSelector
children:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/NPCs/carp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
parent: MobCarp
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions # Frontier

- type: entity
name: space carp
Expand Down Expand Up @@ -238,4 +238,4 @@
parent: MobShark
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/flesh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
Slash: 6
- type: ReplacementAccent
accent: genericAggressive
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions # Frontier

- type: entity
parent: BaseMobFleshSalvage
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/Entities/Mobs/NPCs/space.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
parent: MobBearSpace
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions # Frontier

- type: entity
name: space kangaroo
Expand Down Expand Up @@ -173,7 +173,7 @@
parent: MobKangarooSpace
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions # Frontier

- type: entity
name: space spider
Expand Down Expand Up @@ -271,7 +271,7 @@
parent: MobSpiderSpace
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions

- type: entity
name: space cobra
Expand Down Expand Up @@ -368,4 +368,4 @@
parent: MobCobraSpace
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/NPCs/spacetick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@
parent: MobTick
suffix: "Salvage Ruleset"
components:
- type: SalvageMobRestrictionsNF
- type: NFSalvageMobRestrictions # Frontier

4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Mobs/NPCs/xeno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
molsPerSecondPerUnitMass: 0.0005
- type: Speech
speechVerb: LargeMob
- type: SalvageMobRestrictionsNF # Frontier
- type: NFSalvageMobRestrictions # Frontier
- type: ReplacementAccent # Frontier
accent: genericAggressive # Frontier

Expand Down Expand Up @@ -430,7 +430,7 @@
tags:
- DoorBumpOpener
- FootstepSound
- type: SalvageMobRestrictionsNF # Frontier
- type: NFSalvageMobRestrictions # Frontier
- type: ReplacementAccent # Frontier
accent: genericAggressive # Frontier

Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/dragon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
- type: ActionGun #Frontier
action: ActionDragonsBreath #Frontier
gunProto: DragonsBreathGun #Frontier
- type: SalvageMobRestrictionsNF # Frontier
- type: NFSalvageMobRestrictions # Frontier

- type: entity
id: ActionSpawnRift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Base

- type: entity
parent: FoodInjectableBase
parent: [ FoodInjectableBase, LaunchableProjectileBase ] # Frontier: added LaunchableProjectileBase, located in \Resources\Prototypes\_NF\Entities\Objects\Weapons\Guns\Projectiles\base_projectiles.yml
id: FoodBreadBase
abstract: true
components:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@
- type: entity
parent: ReagentPacketBase
id: ReagentContainerOliveoil
name: olive oil
description: Olive oil. From space olives presumably.
name: olive oil #frontier for consolidating vegetable oils
description: Olive oil. From space olives presumably. #frontier
components:
- type: Sprite
state: oliveoil
Expand Down Expand Up @@ -803,4 +803,4 @@
maxVol: 4
reagents:
- ReagentId: Nutriment
Quantity: 3
Quantity: 3
Loading

0 comments on commit 6eb6974

Please sign in to comment.