Skip to content

Commit

Permalink
Юпитер-6
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelasto committed Mar 1, 2024
1 parent 603dfbe commit 8aed889
Show file tree
Hide file tree
Showing 9 changed files with 5,258 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ namespace Content.Server.StationEvents.Components;
public sealed partial class TraderSpawnRuleComponent : Component
{
[DataField("TraderShuttlePath")]
public string TraderShuttlePath = "Maps/Shuttles/trader.yml";
public string TraderShuttlePath = "Maps/traderpost.yml";
}
6 changes: 6 additions & 0 deletions Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1358,3 +1358,9 @@ Entries:
- {message: Финансовое положение патологоанатома исправлено; теперь он спавнится с 500 кредитами в сумке как и остальные роли., type: Fix}
id: 55695 #костыль отображения в Обновлениях
time: '2024-02-27T22:08:00.0000000+00:00'

- author: Xelasto
changes:
- {message: "Добавленна станция Юпитер-6 торговцев ТСФ.", type: Add}
id: 55696 #костыль отображения в Обновлениях
time: '2024-03-1T20:20:00.0000000+00:00'
5 changes: 5 additions & 0 deletions Resources/Locale/ru-RU/ADT/Trader/trader.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ ent-AirlockGlassTraderLocked = { ent-AirlockGlass }
ent-SecureWindoorTraderLocked = { ent-WindoorSecure }
.desc = { ent-WindoorSecure.desc }
station-event-trader-spawn-announcement = Станция в ваш сектор прибывает шаттл торговой программы, для налаживания торговых отношений с ТСФ
chat-radio-trader = ТСФ
ent-EncryptionKeyTrader = ключ шифрования торговцев
.desc = Ключ шифрования, используемый торговцами.
ent-ClothingHeadsetTrader = гарнитура торговцев
.desc = Гарнитура, используемая торговцами.
5,149 changes: 5,149 additions & 0 deletions Resources/Maps/traderpost.yml

Large diffs are not rendered by default.

119 changes: 89 additions & 30 deletions Resources/Prototypes/ADT/Entities/Mobs/player/trader.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
- type: randomHumanoidSettings
- type: entity
noSpawn: true
parent: MobHuman
id: Trader
name: Trader
components:
- type: MindShield
- type: GhostRole
Expand All @@ -9,14 +12,9 @@
- !type:OverallPlaytimeRequirement
time: 108000 # 30h overall
- type: GhostTakeoverAvailable
- type: RandomHumanoidAppearance
- type: Loadout
prototypes: [ Trader ]
- type: InitialInfectedExempt
- type: RandomMetadata
nameSegments:
- names_first_male
- NamesLastERTCallsign

- type: entity
parent: BasePDA
id: TraderPDA
Expand Down Expand Up @@ -44,6 +42,45 @@
- type: Access
tags:
- Trader
- External

- type: radioChannel
id: Trader
name: chat-radio-trader
keycode: 'ф'
frequency: 1673
color: "#b88646"

- type: entity
parent: EncryptionKey
id: EncryptionKeyTrader
name: trader encryption key
description: An encryption key used by trader.
components:
- type: EncryptionKey
channels:
- Trader
defaultChannel: Trader
- type: Sprite
layers:
- state: crypt_gray
- state: cargo_label

- type: entity
parent: ClothingHeadset
id: ClothingHeadsetTrader
name: trader headset
description: A headset used by trader.
components:
- type: ContainerFill
containers:
key_slots:
- EncryptionKeyTrader
- EncryptionKeyCommon
- type: Sprite
sprite: Clothing/Ears/Headsets/cargo.rsi
- type: Clothing
sprite: Clothing/Ears/Headsets/cargo.rsi

- type: entity
noSpawn: true
Expand All @@ -54,6 +91,8 @@
contents:
- id: BoxSurvival
- id: RubberStampTrader
- id: AppraisalTool
- id: SpaceCash500

- type: entity
name: Trader
Expand All @@ -67,36 +106,18 @@
state: cargo_tech
- type: ConditionalSpawner
prototypes:
- RandomHumanoidSpawnerTrader

- type: entity
id: RandomHumanoidSpawnerTrader
name: Trader
suffix: Trader
components:
- type: Sprite
sprite: Markers/jobs.rsi
state: cargo_tech
- type: RandomHumanoidSpawner
settings: Trader
- type: InitialInfectedExempt
- Trader

- type: entity
name: RandomCargoProduct
id: RandomCargoProduct
name: RandomTraderProduct
id: RandomTraderProduct
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- type: ConditionalSpawner
prototypes:
- CrateArmorySMG
- CrateArmoryShotgun
- CrateTrackingImplants
- CrateTrainingBombs
- CrateArmoryLaser
- CrateArmoryPistols
- AirCanister
- OxygenCanister
- LiquidOxygenCanister
Expand Down Expand Up @@ -226,6 +247,25 @@
- CrateArtifactContainer
- RandomArtifactSpawner
- CrateScienceBiosuit
- Thruster
- Gyroscope

- type: entity
name: RandomTraderArmory
id: RandomTraderArmory
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- type: ConditionalSpawner
prototypes:
- CrateArmorySMG
- CrateArmoryShotgun
- CrateTrackingImplants
- CrateTrainingBombs
- CrateArmoryLaser
- CrateArmoryPistols
- CrateSecurityArmor
- CrateSecurityHelmet
- CrateSecurityNonlethal
Expand All @@ -236,5 +276,24 @@
- DeployableBarrier
- CrateSecurityHardsuit
- CrateSecurityUSSPjuggernaut
- Thruster
- Gyroscope

- type: entity
name: RandomTraderLoot
id: RandomTraderLoot
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- type: ConditionalSpawner
prototypes:
- ADTTallRobotFMekaCargo
- ADTTallRobotFMekaEng
- ADTTallRobotFMekaJani
- ADTTallRobotFMekaMed
- ADTTallRobotFMekaServe
- ADTTallRobotMekaCargo
- ADTTallRobotMekaEng
- ADTTallRobotMekaJani
- ADTTallRobotMekaMed
- ADTTallRobotMekaServe
2 changes: 1 addition & 1 deletion Resources/Prototypes/ADT/StartingGear/trader.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
back: ClothingBackpackCargoTraderFilled
shoes: ClothingShoesColorBlack
id: TraderPDA
ears: ClothingHeadsetTrader
belt: ClothingBeltUtilityFilled
pocket1: AppraisalTool
underwearb: ClothingUnderwearBottomBoxersWhite # Sirena-Underwear
socks: ClothingUnderwearSocksNormal
underweart: ClothingUnderwearTopBraWhite # Sirena-Underwear
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/ADT/Tallrobot/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- type: ContainerFill
containers:
borg_brain:
- MMIFilled
- PositronicBrain
- type: ItemSlots
slots:
cell_slot:
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/ADT/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@

- type: Tag
id: HighVoltageDefibrillator

- type: Tag
id: Trader
4 changes: 3 additions & 1 deletion Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@
startAnnouncement: station-event-trader-spawn-announcement
startAudio:
path: /Audio/Announcements/attention.ogg
weight: 15
weight: 10
minimumPlayers: 45
earliestStart: 30
maxOccurrences: 1
- type: TraderSpawnRule

0 comments on commit 8aed889

Please sign in to comment.