Skip to content

Commit

Permalink
Merge branch 'master' into Judge
Browse files Browse the repository at this point in the history
  • Loading branch information
VividPups authored Oct 11, 2024
2 parents 6c41d25 + df3d862 commit 6e5c43b
Show file tree
Hide file tree
Showing 64 changed files with 323 additions and 134 deletions.
11 changes: 11 additions & 0 deletions Content.Client/Crayon/CrayonSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,17 @@ protected override void FrameUpdate(FrameEventArgs args)
}

_parent.UIUpdateNeeded = false;

// Frontier: unlimited crayon
if (_parent.Capacity == int.MaxValue)
{
_label.SetMarkup(Robust.Shared.Localization.Loc.GetString("crayon-drawing-label-unlimited",
("color", _parent.Color),
("state", _parent.SelectedState)));
return;
}
// End Frontier

_label.SetMarkup(Robust.Shared.Localization.Loc.GetString("crayon-drawing-label",
("color",_parent.Color),
("state",_parent.SelectedState),
Expand Down
12 changes: 8 additions & 4 deletions Content.Server/Crayon/CrayonSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
using Robust.Shared.Audio;
using Robust.Shared.Audio.Systems;
using Robust.Shared.GameStates;
using Robust.Shared.Player;
using Robust.Shared.Prototypes;

namespace Content.Server.Crayon;
Expand Down Expand Up @@ -74,9 +73,14 @@ private void OnCrayonAfterInteract(EntityUid uid, CrayonComponent component, Aft
if (component.UseSound != null)
_audio.PlayPvs(component.UseSound, uid, AudioParams.Default.WithVariation(0.125f));

// Decrease "Ammo"
component.Charges--;
Dirty(uid, component);
// Frontier: check if crayon is infinite
if (component.Charges != int.MaxValue)
{
// Decrease "Ammo"
component.Charges--;
Dirty(uid, component);
}
// End Frontier

_adminLogger.Add(LogType.CrayonDraw, LogImpact.Low, $"{EntityManager.ToPrettyString(args.User):user} drew a {component.Color:color} {component.SelectedState}");
args.Handled = true;
Expand Down
14 changes: 14 additions & 0 deletions Resources/Changelog/Frontier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4325,3 +4325,17 @@ Entries:
message: The Crescent now has been fitted with Air Alarms, engineers rejoice!
id: 5368
time: '2024-10-07T16:38:08.0000000+00:00'
- author: dustylens
changes:
- type: Add
message: New poster for the FSB Spirit and two new EMS signs.
id: 5369
time: '2024-10-09T21:40:26.0000000+00:00'
- author: Leander
changes:
- type: Add
message: >-
Added magic crayon and its selection on the Fun loadouts, paint the
world with it!
id: 5370
time: '2024-10-09T21:54:59.0000000+00:00'
1 change: 1 addition & 0 deletions Resources/Locale/en-US/_NF/crayon/crayon-component.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
crayon-drawing-label-unlimited = Drawing: [color={$color}]{$state}[/color]
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/_NF/job/job-description.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ job-description-brigmedic-nf = Fight in the rear of the sheriff's service, for t
job-description-cadet-nf = Learn the basics of arresting criminals and managing the brig. Listen to your supervisors and feel free to ask them for any help.
job-description-contractor = Fulfill any profitable contracts out on the frontier of NT space.
job-description-deputy = Catch criminals and enemies of the corporation, enforce the law, and ensure that the sector does not fall into disarray.
job-description-detective-nf = Investigate crime scenes using forensic tools, ensure that the guilty party is found, and have a couple smokes.
job-description-nf-detective = Investigate crime scenes using forensic tools, ensure that the guilty party is found, and have a couple smokes.
job-description-ertmailcarrier = Nothing stops the mail.
job-description-mercenary = Execute the bidding of anyone- for the right price. Enjoy being unbound from the confines of the law.
job-description-pilot = Pilot spaceships from point A to B, outmaneuver pirates and dodge asteroids. You are a leaf on the solar wind, let others marvel at how you soar.
Expand Down
2 changes: 1 addition & 1 deletion Resources/Locale/en-US/_NF/job/job-names.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ job-name-brigmedic = Brigmedic
job-name-cadet-nf = Cadet
job-name-contractor = Contractor
job-name-deputy = Deputy
job-name-detective-nf = Detective
job-name-nf-detective = Detective
job-name-ertmailcarrier = ERT Mail Carrier
job-name-mercenary = Mercenary
job-name-pilot = Pilot
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/Shuttles/BlackMarket/schooner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2933,7 +2933,7 @@ entities:
- type: Transform
pos: -0.5,9.5
parent: 1
- proto: SignShield
- proto: NFSignShield
entities:
- uid: 359
components:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/Shuttles/Expedition/anchor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10574,7 +10574,7 @@ entities:
- type: Transform
pos: 2.5,-11.5
parent: 1
- proto: SignShield
- proto: NFSignShield
entities:
- uid: 1261
components:
Expand Down
1 change: 0 additions & 1 deletion Resources/Maps/_NF/Shuttles/Nfsd/empress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11602,7 +11602,6 @@ entities:
- Pressed: Toggle
2543:
- Pressed: Toggle
12: []
2541:
- Pressed: Toggle
2544:
Expand Down
2 changes: 1 addition & 1 deletion Resources/Maps/_NF/Shuttles/Nfsd/opportunity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5872,7 +5872,7 @@ entities:
- type: Transform
pos: 1.7114414,-8.847875
parent: 2
- proto: SignShield
- proto: NFSignShield
entities:
- uid: 858
components:
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Entities/Markers/Spawners/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@
- type: entity
id: SpawnPointDetective
parent: SpawnPointJobBase
abstract: true # Frontier
name: detective
components:
- type: SpawnPoint
Expand Down
6 changes: 3 additions & 3 deletions Resources/Prototypes/Recipes/Reactions/biological.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
Iron: 0.5
Sugar: 2
CarbonDioxide: 3
Protein: 4
# Protein: 4 # Frontier

- type: reaction
id: SlimeBloodBreakdown
Expand Down Expand Up @@ -51,7 +51,7 @@
Copper: 0.5
Sugar: 2
CarbonDioxide: 3
Protein: 4
# Protein: 4 # Frontier

- type: reaction
id: ZombieBloodBreakdown
Expand All @@ -63,5 +63,5 @@
amount: 4
products:
Mold: 2
Protein: 1
# Protein: 1 # Frontier
Toxin: 1
2 changes: 1 addition & 1 deletion Resources/Prototypes/Recipes/Reactions/food.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
products:
Fat: 6
Water: 3
Protein: 1 #water & protein represent aqueous proteins
# Protein: 1 #water & protein represent aqueous proteins # Frontier

#- type: reaction
# id: SugarBreakdown
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Roles/Jobs/departments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
- PrisonGuard ##nyano
- Brigmedic # Frontier
# - SecurityGuard # Frontier
- DetectiveNF # Frontier
- NFDetective # Frontier
- Cadet # Frontier
- Deputy # Frontier
- Bailiff # Frontier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
parent: SeatBase
description: Multiple seats spanning a single object. Truly a marvel of science.
components:
- type: Physics
bodyType: Static
- type: Transform
anchored: true
- type: Rotatable
Expand Down Expand Up @@ -233,8 +235,6 @@
state: corner
- type: Clickable
- type: InteractionOutline
- type: Physics
bodyType: Dynamic
- type: Pullable
- type: Damageable
damageContainer: Inorganic
Expand Down Expand Up @@ -304,8 +304,6 @@
state: corner
- type: Clickable
- type: InteractionOutline
- type: Physics
bodyType: Dynamic
- type: Pullable
- type: Damageable
damageContainer: Inorganic
Expand All @@ -323,4 +321,4 @@
collection: MetalBreak
- type: Construction # Frontier
graph: SofasGraph # Frontier
node: BenchSofaCorpCornerNode # Frontier
node: BenchSofaCorpCornerNode # Frontier
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
CadetPDA: 10
DeputyPDA: 10
BrigmedicNFPDA: 10
DetectiveNFPDA: 10
NFDetectivePDA: 10
SergeantPDA: 10
BailiffPDA: 10
ClothingHeadsetNfsdBrownCommon: 4294967295 #infinite
Expand Down
5 changes: 2 additions & 3 deletions Resources/Prototypes/_NF/Entities/Markers/Spawners/jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,12 @@
- state: warden

- type: entity
id: SpawnPointDetectiveNF
id: NFSpawnPointDetective
parent: SpawnPointDetective
name: detective
suffix: Frontier
components:
- type: SpawnPoint
job_id: DetectiveNF
job_id: NFDetective
- type: Sprite
layers:
- state: green
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@
- NFPosterContrabandFsbStasisDD
- NFPosterContrabandFsbApothecaryDD
- NFPosterContrabandFsbLogoDD
- NFPosterContrabandFsbSpiritDD
- NFPosterContrabandEmsCoordsDD
chance: 1
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- Brigmedic
- Cadet
- Deputy
- DetectiveNF
- NFDetective
- SeniorOfficer
- Sheriff
- SecurityGuard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@

- type: entity
parent: CadetIDCard
id: DetectiveNFIDCard
id: NFDetectiveIDCard
name: nfsd detective ID card
components:
- type: PresetIdCard
job: DetectiveNF
job: NFDetective
- type: Sprite
sprite: _NF/Objects/Misc/id_cards.rsi
layers:
Expand Down
8 changes: 4 additions & 4 deletions Resources/Prototypes/_NF/Entities/Objects/Devices/pda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -332,13 +332,13 @@

- type: entity
parent: BasePDA
id: DetectiveNFPDA
id: NFDetectivePDA
name: detective PDA
description: Smells like rain... pouring down the rooftops...
components:
- type: Pda
id: DetectiveNFIDCard
state: pda-detectivenf
id: NFDetectiveIDCard
state: pda-nfdetective
bookSlot: # Frontier
startingItem: HyperlinkBookNfsdSop
priority: -2
Expand All @@ -362,7 +362,7 @@
visible: false
- type: Icon
sprite: _NF/Objects/Devices/pda.rsi
state: pda-detectivenf
state: pda-nfdetective

- type: entity
parent: BasePDA
Expand Down
28 changes: 28 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Fun/magic_crayon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
- type: entity
parent: CrayonRainbow
id: CrayonMagic
name: magic crayon
description: Specially blended with bluespace crystals and certified non-toxic.
components:
- type: Sprite
sprite: _NF/Objects/Fun/magic_crayon.rsi
state: icon
- type: Item
sprite: _NF/Objects/Fun/magic_crayon.rsi
heldPrefix: icon
- type: Tag # Removing trash & recyclable
tags:
- Write
- Crayon
- type: Crayon
capacity: 2147483647 # int.MaxValue, infinite charges
- type: FlavorProfile
flavors:
- chewy
- magical
- type: SolutionContainerManager
solutions:
food:
reagents:
- ReagentId: Nothing
Quantity: 40
Original file line number Diff line number Diff line change
Expand Up @@ -335,3 +335,13 @@
parent: [DeadDropBase, NFPosterContrabandFsbApothecary]
id: NFPosterContrabandFsbApothecaryDD
suffix: DeadDrop

- type: entity
parent: [DeadDropBase, NFPosterContrabandFsbSpirit]
id: NFPosterContrabandFsbSpiritDD
suffix: DeadDrop

- type: entity
parent: [DeadDropBase, NFPosterContrabandEmsCoords]
id: NFPosterContrabandEmsCoordsDD
suffix: DeadDrop
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,23 @@
- type: Sprite
sprite: _NF/Structures/Wallmounts/posters.rsi
state: nf_poster6_contraband

- type: entity
parent: PosterBase
id: NFPosterContrabandFsbSpirit
name: "Far Star Biotech Spirit"
description: "The FSB Spirit! We know what your life is worth."
components:
- type: Sprite
sprite: _NF/Structures/Wallmounts/posters.rsi
state: nf_poster7_contraband

- type: entity
parent: PosterBase
id: NFPosterContrabandEmsCoords
name: "EMS Suit Coordinates Reminder"
description: "Rosy the Medroach reminding you to turn your suit coordinates! Make sure your next death isn't your last!"
components:
- type: Sprite
sprite: _NF/Structures/Wallmounts/posters.rsi
state: nf_poster8_contraband
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,30 @@
components:
- type: Sprite
state: bus

- type: entity
parent: NFBaseSign
id: NFSignShield
name: shield sign
description: A sign with a shield.
components:
- type: Sprite
state: shield

- type: entity
parent: NFBaseSign
id: NFSignEms1
name: emergency medical service sign
description: A sign that indicates emergency medical services.
components:
- type: Sprite
state: ems1

- type: entity
parent: NFBaseSign
id: NFSignEms2
name: emergency medical service sign
description: A sign that indicates emergency medical services.
components:
- type: Sprite
state: ems2
9 changes: 9 additions & 0 deletions Resources/Prototypes/_NF/Loadouts/Jobs/Contractor/fun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,12 @@
price: 10000
inhand:
- PetCarrierNPCEmotionalSupportSafe

- type: loadout
id: ContractorCrayonMagic
effects:
- !type:GroupLoadoutEffect
proto: ContractorT3
price: 30000
inhand:
- CrayonMagic
Loading

0 comments on commit 6e5c43b

Please sign in to comment.