From c0a1e6ea15a44a48e3f11c14509ea24406b7b352 Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:33:48 +0200 Subject: [PATCH] space law book (#29392) * Space Law Book * crate --- .../Catalog/Fills/Books/bookshelf.yml | 2 ++ .../Catalog/Fills/Crates/service.yml | 1 + .../Catalog/Fills/Lockers/heads.yml | 2 ++ .../Catalog/Fills/Lockers/security.yml | 4 +++ .../VendingMachines/Inventories/lawdrobe.yml | 1 + .../Entities/Objects/Misc/books.yml | 28 +++++++++++++++++++ .../Prototypes/Roles/Jobs/Civilian/lawyer.yml | 2 +- 7 files changed, 39 insertions(+), 1 deletion(-) diff --git a/Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml b/Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml index 09c7e165bf..a0b6b57ec1 100644 --- a/Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml +++ b/Resources/Prototypes/Catalog/Fills/Books/bookshelf.yml @@ -35,6 +35,8 @@ orGroup: BookPool - id: BookChemicalCompendium orGroup: BookPool + - id: BookSpaceLaw + orGroup: BookPool - id: BookNarsieLegend prob: 0.1 orGroup: BookAuthor diff --git a/Resources/Prototypes/Catalog/Fills/Crates/service.yml b/Resources/Prototypes/Catalog/Fills/Crates/service.yml index f4c47cfe9e..3950c4f8fd 100644 --- a/Resources/Prototypes/Catalog/Fills/Crates/service.yml +++ b/Resources/Prototypes/Catalog/Fills/Crates/service.yml @@ -183,6 +183,7 @@ - id: BookMedicalReferenceBook - id: BookHowToSurvive - id: BookChemicalCompendium + - id: BookSpaceLaw - type: entity id: CrateServiceSodaDispenser diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml index 11863ea51d..af45bdfc6a 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/heads.yml @@ -278,6 +278,7 @@ - id: BoxEncryptionKeySecurity - id: HoloprojectorSecurity - id: BookSecretDocuments + - id: BookSpaceLaw - type: entity id: LockerHeadOfSecurityFilled @@ -301,6 +302,7 @@ - id: BoxEncryptionKeySecurity - id: HoloprojectorSecurity - id: BookSecretDocuments + - id: BookSpaceLaw - type: entity id: LockerFreezerVaultFilled diff --git a/Resources/Prototypes/Catalog/Fills/Lockers/security.yml b/Resources/Prototypes/Catalog/Fills/Lockers/security.yml index 2896494978..002996330b 100644 --- a/Resources/Prototypes/Catalog/Fills/Lockers/security.yml +++ b/Resources/Prototypes/Catalog/Fills/Lockers/security.yml @@ -19,6 +19,7 @@ - id: DoorRemoteArmory - id: ClothingOuterHardsuitWarden - id: HoloprojectorSecurity + - id: BookSpaceLaw - type: entity id: LockerWardenFilled @@ -40,6 +41,7 @@ - id: RubberStampWarden - id: DoorRemoteArmory - id: HoloprojectorSecurity + - id: BookSpaceLaw - type: entity id: LockerSecurityFilled @@ -66,6 +68,8 @@ prob: 0.1 - id: HoloprojectorSecurity prob: 0.6 + - id: BookSpaceLaw + prob: 0.5 - type: entity id: LockerBrigmedicFilled diff --git a/Resources/Prototypes/Catalog/VendingMachines/Inventories/lawdrobe.yml b/Resources/Prototypes/Catalog/VendingMachines/Inventories/lawdrobe.yml index 28f63e44e2..75760ce519 100644 --- a/Resources/Prototypes/Catalog/VendingMachines/Inventories/lawdrobe.yml +++ b/Resources/Prototypes/Catalog/VendingMachines/Inventories/lawdrobe.yml @@ -15,6 +15,7 @@ ClothingHeadsetService: 2 ClothingNeckLawyerbadge: 2 BriefcaseBrown: 2 + BookSpaceLaw: 3 LuxuryPen: 2 contrabandInventory: ClothingOuterRobesJudge: 1 diff --git a/Resources/Prototypes/Entities/Objects/Misc/books.yml b/Resources/Prototypes/Entities/Objects/Misc/books.yml index fd4cac781b..d5cf78c65b 100644 --- a/Resources/Prototypes/Entities/Objects/Misc/books.yml +++ b/Resources/Prototypes/Entities/Objects/Misc/books.yml @@ -353,6 +353,34 @@ guides: - Chemicals +- type: entity + id: BookSpaceLaw + parent: BaseItem + name: space law + description: A set of Nanotrasen guidelines for keeping law and order on their space stations. + components: + - type: Sprite + sprite: Objects/Misc/books.rsi + layers: + - state: paper + - state: cover_strong + color: "#87011c" + - state: icon_law + color: "#f7d61a" + - type: Tag + tags: + - Book + - type: GuideHelp + openOnActivation: true + guides: + - SpaceLaw + - type: MeleeWeapon # so you can beat stupid cadets + soundHit: + collection: Punch + damage: + types: + Blunt: 1 + - type: entity parent: BookBase id: BookRandom diff --git a/Resources/Prototypes/Roles/Jobs/Civilian/lawyer.yml b/Resources/Prototypes/Roles/Jobs/Civilian/lawyer.yml index 58a8ebece1..713cde0e0c 100644 --- a/Resources/Prototypes/Roles/Jobs/Civilian/lawyer.yml +++ b/Resources/Prototypes/Roles/Jobs/Civilian/lawyer.yml @@ -21,9 +21,9 @@ shoes: ClothingShoesBootsLaceup id: LawyerPDA ears: ClothingHeadsetSecurity - # TODO add copy of space law inhand: - BriefcaseBrownFilled storage: back: - RubberStampLawyer + - BookSpaceLaw -- 2.51.2