Skip to content

Commit

Permalink
Start of Lore Documents
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Nov 30, 2024
1 parent de98c2a commit dfb12e5
Show file tree
Hide file tree
Showing 22 changed files with 366 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Content.Client/Lobby/UI/LoadoutPreferenceSelector.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,21 @@ public LoadoutPreferenceSelector(LoadoutPrototype loadout, JobPrototype highJob,

// Manage the info button
void UpdateGuidebook() => GuidebookButton.Visible =
prototypeManager.HasIndex<GuideEntryPrototype>(DefaultLoadoutInfoGuidebook + Loadout.ID);
prototypeManager.HasIndex<GuideEntryPrototype>(loadout.GuideEntry);
UpdateGuidebook();
prototypeManager.PrototypesReloaded += _ => UpdateGuidebook();

GuidebookButton.OnPressed += _ =>
{
if (!prototypeManager.TryIndex<GuideEntryPrototype>(DefaultLoadoutInfoGuidebook, out var guideRoot))
if (!prototypeManager.TryIndex<GuideEntryPrototype>(loadout.GuideEntry, out var guideRoot))
return;

var guidebookController = UserInterfaceManager.GetUIController<GuidebookUIController>();
//TODO: Don't close the guidebook if its already open, just go to the correct page
guidebookController.ToggleGuidebook(
new Dictionary<string, GuideEntry> { { DefaultLoadoutInfoGuidebook, guideRoot } },
new Dictionary<string, GuideEntry> { { loadout.GuideEntry, guideRoot } },
includeChildren: true,
selected: DefaultLoadoutInfoGuidebook + Loadout.ID);
selected: loadout.GuideEntry);
};

// Create a checkbox to get the loadout
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using Content.Shared.Clothing.Loadouts.Systems;
using Content.Shared.Customization.Systems;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;

namespace Content.Shared.Clothing.Loadouts.Prototypes;

Expand Down Expand Up @@ -45,4 +42,7 @@ public sealed partial class LoadoutPrototype : IPrototype

[DataField]
public List<CharacterRequirement> Requirements = new();

[DataField]
public string GuideEntry { get; } = "";
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
id: WeaponEnergyGunMiniSecurity
description: A light version of the Energy gun with a smaller capacity.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: PDW-9 Energy Pistol
Expand Down Expand Up @@ -236,6 +239,9 @@
id: WeaponEnergyGunPistolSecurity
description: A military grade sidearm, used by many militia forces throughout the local sector.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: IK-60 laser carbine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
id: WeaponPistolViperWoodSecurity
description: A small, low-power pistol with pleasant lacquered wooden grips. Uses .35 auto ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Pollock
Expand Down Expand Up @@ -85,6 +88,9 @@
id: WeaponPistolPollockSecurity
description: A compact and mass-produced combat pistol. Uses .35 auto ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Pollock
Expand All @@ -110,6 +116,8 @@
whitelist:
tags:
- CartridgePistol
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: psi-breaker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
id: WeaponRevolverSnubSecurity
description: An old and reliable revolver, modified to be more easily concealed. Uses .45 magnum ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: snubbed .45
Expand All @@ -43,6 +46,8 @@
capacity: 6
chambers: [ True, True, True, True, True, True ]
ammoSlots: [ null, null, null, null, null, null ]
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: k-38 masterpiece
Expand Down Expand Up @@ -75,6 +80,9 @@
id: WeaponRevolverK38MasterSecurity
description: A classic, if not outdated, law enforcement firearm. Uses .38 special ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: k-38 masterpiece
Expand All @@ -90,6 +98,8 @@
capacity: 6
chambers: [ True, True, True, True, True, True ]
ammoSlots: [ null, null, null, null, null, null ]
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: fitz special
Expand Down Expand Up @@ -122,6 +132,9 @@
id: WeaponRevolverFitzSecurity
description: A compact and concealable self defence snub revolver. Uses .38 special ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: fitz special
Expand All @@ -137,6 +150,8 @@
capacity: 6
chambers: [ True, True, True, True, True, True ]
ammoSlots: [ null, null, null, null, null, null ]
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: lucky 37
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
description: A small, easily concealable, but somewhat underpowered gun, produced by a bulk arms manufacturer now defunct for over a century.
Uses .35 auto ammo. The serial number on the handguard marks this gun as belonging to an NT Security Officer.
suffix: Security Loadouts
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
id: WeaponPistolViperNonLethal
Expand Down Expand Up @@ -149,6 +152,9 @@
suffix: Non-lethal, SecurityLoadouts
description: A small, easily concealable, but somewhat underpowered gun, produced by a bulk arms manufacturer now defunct for over a century.
Uses .35 auto ammo. The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: cobra
Expand Down Expand Up @@ -229,6 +235,9 @@
description: A cheap, ubiquitous sidearm, produced by a NanoTrasen subsidiary. Uses .35 auto ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
suffix: Security Loadouts
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
id: WeaponPistolMk58Nonlethal
Expand Down Expand Up @@ -262,6 +271,9 @@
suffix: Non-lethal, Security Loadouts
description: A cheap, ubiquitous sidearm, produced by a NanoTrasen subsidiary. Uses .35 auto ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: N1984
Expand Down Expand Up @@ -315,6 +327,9 @@
description: The sidearm of any self respecting officer. Comes in .45 magnum, the lord's caliber.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
suffix: Security Loadouts
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: N1984
Expand Down Expand Up @@ -350,3 +365,6 @@
description: The sidearm of any self respecting officer. Comes in .45 magnum, the lord's caliber.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
suffix: Security Loadouts
components:
- type: GuideHelp
guides: [ SecurityWeapons ]
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
id: WeaponRevolverDeckardSecurity
description: A rare, custom-built revolver. Use when there is no time for Voight-Kampff test. Uses .45 magnum ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Deckard
Expand All @@ -99,6 +102,8 @@
- CartridgeMagnum
- SpeedLoaderMagnum
proto: CartridgeMagnumRubber
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Inspector
Expand All @@ -121,6 +126,9 @@
id: WeaponRevolverInspectorSecurity
description: A detective's best friend. Uses .45 magnum ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Inspector
Expand All @@ -135,6 +143,8 @@
- CartridgeMagnum
- SpeedLoaderMagnum
proto: CartridgeMagnumRubber
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Mateba
Expand Down Expand Up @@ -178,6 +188,9 @@
id: WeaponRevolverPythonSecurity
description: An iconic large-framed revolver of ancient Sol' design. It is commonly manufactured by many companies all over the colonies. Uses .45 magnum ammo.
The serial number on the handguard marks this gun as belonging to an NT Security Officer.
components:
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Python
Expand All @@ -197,6 +210,8 @@
path: /Audio/Weapons/Guns/MagOut/revolver_magout.ogg
soundInsert:
path: /Audio/Weapons/Guns/MagIn/revolver_magin.ogg
- type: GuideHelp
guides: [ SecurityWeapons ]

- type: entity
name: Python
Expand Down
6 changes: 6 additions & 0 deletions Resources/Prototypes/Guidebook/Loadouts/loadoutInfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
text: "/ServerInfo/Guidebook/LoadoutInfo/LoadoutInfo.xml"
children:
- LoadoutInfoLoadoutEyesEyepatch
- SecurityWeapons

- type: guideEntry
id: LoadoutInfoLoadoutEyesEyepatch
name: guide-entry-loadout-eyes-eyepatch
text: "/ServerInfo/Guidebook/LoadoutInfo/Eyes/LoadoutInfoLoadoutEyesEyepatch.xml"

- type: guideEntry
id: SecurityWeapons
name: guide-entry-loadout-info-security-weapons
text: "/ServerInfo/Guidebook/LoadoutInfo/Security/SecurityWeapons.xml"
66 changes: 66 additions & 0 deletions Resources/Prototypes/Guidebook/Lore/settinglore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
- type: guideEntry
id: SettingLore
name: guide-entry-setting-lore
text: "/ServerInfo/Guidebook/Lore/SettingLore.xml"
children:
- Corporations

- type: guideEntry
id: Corporations
name: guide-entry-corporations
text: "/ServerInfo/Guidebook/Lore/Corporations/Corporations.xml"
children:
- IdrisIncorporated
- EinsteinEngines
- StellarCorporateConglomerate
- NanoTrasen
- OrionExpress
- ZengHuPharmaceuticals
- HephaestusIndustries
- ZavodskoiInterstellar
- PrivateMilitaryContractingGroup

- type: guideEntry
id: IdrisIncorporated
name: guide-entry-idris-incorporated
text: "/ServerInfo/Guidebook/Lore/Corporations/IdrisIncorporated.xml"

- type: guideEntry
id: EinsteinEngines
name: guide-entry-einstein-engines
text: "/ServerInfo/Guidebook/Lore/Corporations/EinsteinEngines.xml"

- type: guideEntry
id: StellarCorporateConglomerate
name: guide-entry-stellar-corporate-conglomerate
text: "/ServerInfo/Guidebook/Lore/Corporations/StellarCorporateConglomerate.xml"

- type: guideEntry
id: NanoTrasen
name: guide-entry-nanotrasen
text: "/ServerInfo/Guidebook/Lore/Corporations/NanoTrasen.xml"

- type: guideEntry
id: OrionExpress
name: guide-entry-orion-express
text: "/ServerInfo/Guidebook/Lore/Corporations/OrionExpress.xml"

- type: guideEntry
id: ZengHuPharmaceuticals
name: guide-entry-zeng-hu-pharmaceuticals
text: "/ServerInfo/Guidebook/Lore/Corporations/ZengHuPharmaceuticals.xml"

- type: guideEntry
id: HephaestusIndustries
name: guide-entry-hephaestus-industries
text: "/ServerInfo/Guidebook/Lore/Corporations/HephaestusIndustries.xml"

- type: guideEntry
id: ZavodskoiInterstellar
name: guide-entry-zavodskoi-interstellar
text: "/ServerInfo/Guidebook/Lore/Corporations/ZavodskoiInterstellar.xml"

- type: guideEntry
id: PrivateMilitaryContractingGroup
name: guide-entry-private-military-contracting-group
text: "/ServerInfo/Guidebook/Lore/Corporations/PrivateMilitaryContractingGroup.xml"
1 change: 1 addition & 0 deletions Resources/Prototypes/Guidebook/ss14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Writing
- Glossary
- LoadoutInfo
- SettingLore

- type: guideEntry
id: Writing
Expand Down
Loading

0 comments on commit dfb12e5

Please sign in to comment.