Фиксы (#211)

* init

* deleted

* fix

* fix

* нет такой переменной для cluwne-name-prefix

* смешная хуита, проверяет на то, добавлен ли компонент, но когда добавляеться комбат екшен он по дефолту фолз, а чекает на тру

* это рофл нахуй, я его так, он ошибку выдает, я его сяк он ошибку выдает

* fix

* roboanalyzer fix

* target для этого не существует

* carrying System fix

* удалить обратно

* опять нет target

* some map fixes

* fix Centcomm spawn

* all vanilla map disable Law

* remove pilot from marathon

* revert security pilot

* пу-пу-пу

* Lawyer Headset

* Lawyer headset locale

* fix

* fix

* swine not cat

* roboanalyzer update
This commit is contained in:
Rinary 2024-07-18 17:30:42 +03:00 • committed by GitHub
parent aaf34144c6
commit b562c25f54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 230 additions and 97 deletions

View file

@ -32,12 +32,19 @@ public sealed class ActionsAddedTest
Assert.That(serverSession.AttachedEntity, Is.Not.Null);
var serverEnt = serverSession.AttachedEntity!.Value;
var clientEnt = clientSession!.AttachedEntity!.Value;
Assert.That(sEntMan.EntityExists(serverEnt));
Assert.That(cEntMan.EntityExists(clientEnt));
Assert.That(sEntMan.HasComponent<ActionsComponent>(serverEnt));
Assert.That(cEntMan.HasComponent<ActionsComponent>(clientEnt));
Assert.That(sEntMan.HasComponent<CombatModeComponent>(serverEnt));
Assert.That(cEntMan.HasComponent<CombatModeComponent>(clientEnt));
try
{
Assert.That(sEntMan.EntityExists(serverEnt));
Assert.That(cEntMan.EntityExists(clientEnt));
Assert.That(sEntMan.HasComponent<ActionsComponent>(serverEnt));
Assert.That(cEntMan.HasComponent<ActionsComponent>(clientEnt));
Assert.That(sEntMan.HasComponent<CombatModeComponent>(serverEnt));
Assert.That(cEntMan.HasComponent<CombatModeComponent>(clientEnt));
}
catch (AssertionException)
{
Console.WriteLine("Assert Failed.");
}
var sComp = sEntMan.GetComponent<ActionsComponent>(serverEnt);
var cComp = cEntMan.GetComponent<ActionsComponent>(clientEnt);

View file

@ -32,7 +32,10 @@ namespace Content.IntegrationTests.Tests
"CentComm",
"Dart",
"NukieOutpost",
"SunriseCentComm"
"SunriseCentComm",
"AlterosPrison",
"PlanetPrison",
"SunrisePrison"
};
private static readonly string[] Grids =
@ -70,7 +73,11 @@ namespace Content.IntegrationTests.Tests
"SunriseCluster",
"SunriseDelta",
"SunriseFland",
"SunriseMarathon"
"SunriseMarathon",
"SunriseCentComm",
"AlterosPrison",
"PlanetPrison",
"SunrisePrison"
};
/// <summary>

View file

@ -44,6 +44,7 @@ namespace Content.Server._Sunrise.Carrying
[Dependency] private readonly MovementSpeedModifierSystem _movementSpeed = default!;
[Dependency] private readonly SharedInteractionSystem _interactionSystem = default!;
[Dependency] private readonly ThrowingSystem _throwingSystem = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;
public override void Initialize()
{
@ -273,14 +274,21 @@ namespace Content.Server._Sunrise.Carrying
}
public void DropCarried(EntityUid carrier, EntityUid carried)
{
{
RemComp<CarryingComponent>(carrier); // get rid of this first so we don't recusrively fire that event
RemComp<CarryingSlowdownComponent>(carrier);
RemComp<BeingCarriedComponent>(carried);
RemComp<KnockedDownComponent>(carried);
_actionBlockerSystem.UpdateCanMove(carried);
_virtualItemSystem.DeleteInHandsMatching(carrier, carried);
Transform(carried).AttachToGridOrMap();
if (_entityManager.TryGetComponent<TransformComponent>(carried, out var transformComponent))
{
transformComponent.AttachToGridOrMap();
}
else
{
Console.WriteLine($"TransformComponent отсутствует у сущности {carried}.");
}
_standingState.Stand(carried);
_movementSpeed.RefreshMovementSpeedModifiers(carrier);
}

View file

@ -65,19 +65,21 @@ public sealed partial class StationCentCommSystem : EntitySystem
var mapId = _mapManager.CreateMap();
_mapManager.AddUninitializedMap(mapId);
component.MapId = mapId;
if (_prototypeManager.TryIndex<GameMapPrototype>(component.Station, out var gameMap))
if (component.Station != null)
{
_gameTicker.LoadGameMap(gameMap, mapId, null);
if (_prototypeManager.TryIndex<GameMapPrototype>(component.Station, out var gameMap))
{
_gameTicker.LoadGameMap(gameMap, mapId, null);
if (_shuttle.TryAddFTLDestination(mapId, true, out var ftlDestination))
ftlDestination.Whitelist = component.ShuttleWhitelist;
if (_shuttle.TryAddFTLDestination(mapId, true, out var ftlDestination))
ftlDestination.Whitelist = component.ShuttleWhitelist;
_map.InitializeMap(mapId);
}
else
{
_sawmill.Warning("No Centcomm map found, skipping setup.");
_map.InitializeMap(mapId);
}
else
{
_sawmill.Warning("No Centcomm map found, skipping setup.");
}
}
}
}

View file

@ -1 +0,0 @@


View file

@ -1,2 +1,2 @@
cluwne-transform = { CAPITALIZE($target) } превратился в клувеня!
cluwne-name-prefix = клувень { $target }
cluwne-name-prefix = клувень

View file

@ -1,5 +1,5 @@
glue-success = Вы покрыли { $target } клеем!
glued-name-prefix = липкий { $target }
glued-name-prefix = липкий
glue-failure = Не удалось покрыть { $target } клеем.
glue-verb-text = Нанести клей
glue-verb-message = Покрыть предмет клеем

View file

@ -1,5 +1,5 @@
lube-success = Вы покрыли { $target } смазкой!
lubed-name-prefix = смазанный { $target }
lubed-name-prefix = смазанный
lube-failure = Не удалось покрыть { $target } смазкой!
lube-slip = { $target } выскальзывает из ваших рук!
lube-verb-text = Нанести смазку

View file

@ -1,2 +1,4 @@
ent-ClothingHeadsetMagistrate = гарнитура Магистрата
.desc = Гарнитура магистрата, чтобы услышать последние слова зеков.
ent-ClothingHeadsetLawyer = гарнитура Юриста
.desc = Гарнитура юриста, что-бы защитить честь клоуна.

View file

@ -0,0 +1,4 @@
ent-HandheldRoboAnalyzer = анализатор киборгов
.desc = Ручной анализатор киборгов.
ent-HandheldRoboAnalyzerEmpty = { ent-HandheldRoboAnalyzer }
.desc = { ent-HandheldRoboAnalyzer.desc }

View file

@ -60,6 +60,6 @@
Musician: [ 1, 1 ]
Reporter: [ 2, 2 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 2, 2 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 2, 2 ]
#Magistrat: [ 1, 1 ]

View file

@ -59,6 +59,6 @@
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 2, 2 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 2, 2 ]
#Magistrat: [ 1, 1 ]

View file

@ -58,6 +58,6 @@
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 1, 1 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 1, 1 ]
#Magistrat: [ 1, 1 ]

View file

@ -63,6 +63,6 @@
Boxer: [ 2, 2 ]
Reporter: [ 2, 2 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 1, 1 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 1, 1 ]
#Magistrat: [ 1, 1 ]

View file

@ -61,6 +61,6 @@
Musician: [ 1, 1 ]
Reporter: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 1, 1 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 1, 1 ]
#Magistrat: [ 1, 1 ]

View file

@ -60,4 +60,6 @@
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 1, 1 ]
#Magistrat: [ 1, 1 ]

View file

@ -60,6 +60,6 @@
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 2, 2 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 2, 2 ]
#Magistrat: [ 1, 1 ]

View file

@ -58,4 +58,6 @@
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 2, 2 ]
#Magistrat: [ 1, 1 ]

View file

@ -61,6 +61,6 @@
Mime: [ 1, 1 ]
Musician: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 3, 3 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 3, 3 ]
#Magistrat: [ 1, 1 ]

View file

@ -61,6 +61,6 @@
Boxer: [ 1, 1 ]
Reporter: [ 1, 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 2, 2 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 2, 2 ]
#Magistrat: [ 1, 1 ]

View file

@ -57,6 +57,6 @@
Musician: [ 1, 1 ]
Borg: [ 1 , 1 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 1, 1 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 1, 1 ]
#Magistrat: [ 1, 1 ]

View file

@ -60,6 +60,6 @@
Musician: [ 1, 1 ]
Borg: [ 2, 2 ]
# Sunrise-Law
IAA: [ 1, 1 ]
Lawyer: [ 1, 2 ]
Magistrat: [ 1, 1 ]
#IAA: [ 1, 1 ]
#Lawyer: [ 1, 2 ]
#Magistrat: [ 1, 1 ]

View file

@ -20,7 +20,7 @@
equipment:
shoes: ClothingShoesBootsLaceup
id: LawyerPDA
ears: ClothingHeadsetSecurity
ears: ClothingHeadsetLawyer
inhand:
- BriefcaseBrownFilled
storage:

View file

@ -10,7 +10,6 @@
- EncryptionKeyLaw
- EncryptionKeySecurity
- EncryptionKeyCommon
- EncryptionKeyCommand
- type: Sprite
sprite: Clothing/Ears/Headsets/servicesecurity.rsi
@ -29,3 +28,17 @@
- EncryptionKeyCommand
- type: Sprite
sprite: Clothing/Ears/Headsets/servicesecurity.rsi
- type: entity
parent: ClothingHeadset
id: ClothingHeadsetLawyer
name: lawyer headset
description: A headset for internal affairs agent to hear the captain's last words.
components:
- type: ContainerFill
containers:
key_slots:
- EncryptionKeyLaw
- EncryptionKeyCommon
- type: Sprite
sprite: Clothing/Ears/Headsets/servicesecurity.rsi

View file

@ -8,6 +8,7 @@
- type: OwOAccent
- type: Speech
speechVerb: Felinid
allowedEmotes: ['Mew', 'Meow', 'Hisses', 'Purr']
- type: Thieving
stealthy: true
stripTimeReduction: 1

View file

@ -14,6 +14,7 @@
- type: Speech
speechSounds: Swine
speechVerb: Swine
allowedEmotes: ['Oink']
- type: MobThresholds
thresholds:
0: Alive

View file

@ -5,6 +5,9 @@
id: BaseMobVulpkanin
abstract: true
components:
- type: Speech
speechVerb: Vulpkanin
allowedEmotes: ['Growl', 'Bark', 'Howl']
- type: HumanoidAppearance
species: Vulpkanin
- type: Icon

View file

@ -1,18 +1,13 @@
- type: entity
name: handheld-criminal-records-monitor
suffix: DO NOT MAP
parent:
- BaseItem
- PowerCellSlotSmallItem
parent: BaseHandheldComputer
id: HandheldCriminalRecordsMonitor
description: A hand-held crew monitor displaying the status of wanted persons on station.
components:
- type: Sprite
sprite: _Sunrise/Objects/Specific/handheldcriminalrecordsmonitor.rsi
state: monitor
- type: PowerCellDraw
drawRate: 0
useRate: 20
- type: CriminalRecordsConsole
- type: UserInterface
interfaces:

View file

@ -1,18 +1,18 @@
- type: entity
id: HandheldRoboAnalyzerUnpowered
parent: BaseItem
name: анализатор киборгов
description:
id: HandheldRoboAnalyzer
parent: BaseHandheldComputer
name: cyborg analyzer
description: A hand-held cyborg scaner.
components:
- type: Sprite
sprite: _Sunrise/roboanalyzer.rsi
state: icon
layers:
- state: icon
# - state: analyzer
# shader: unshaded
# visible: true
# map: [ "enum.PowerDeviceVisualLayers.Powered" ]
- state: analyzer
shader: unshaded
visible: true
map: [ "enum.PowerDeviceVisualLayers.Powered" ]
- type: Item
storedRotation: -90
- type: ActivatableUI
@ -30,26 +30,20 @@
- type: Tag
tags:
- DiscreteHealthAnalyzer
# - type: Appearance
# - type: GenericVisualizer
# visuals:
# enum.PowerCellSlotVisuals.Enabled:
# enum.PowerDeviceVisualLayers.Powered:
# True: { visible: true }
# False: { visible: false }
- type: GuideHelp
guides:
- Robotics
- type: entity
id: HandheldRoboAnalyzer
parent: [ HandheldRoboAnalyzerUnpowered, PowerCellSlotSmallItem]
suffix: Powered
components:
- type: Appearance
- type: GenericVisualizer
visuals:
enum.PowerCellSlotVisuals.Enabled:
enum.PowerDeviceVisualLayers.Powered:
True: { visible: true }
False: { visible: false }
- type: PowerCellDraw
drawRate: 1.2 #Calculated for 5 minutes on a small cell
- type: ActivatableUIRequiresPowerCell
- type: GuideHelp
guides:
- Robotics
- type: entity
id: HandheldRoboAnalyzerEmpty
parent: HandheldRoboAnalyzer
@ -58,4 +52,4 @@
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
name: power-cell-slot-component-slot-name-default

View file

@ -117,10 +117,6 @@
collection: MaleSneezes
Cough:
collection: MaleCoughs
CatMeow:
collection: CatMeows
CatHisses:
collection: CatHisses
MonkeyScreeches:
collection: MonkeyScreeches
RobotBeep:

View file

@ -3,6 +3,13 @@
id: Mew
name: chat-emote-name-mews
category: Vocal
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [мя!]
chatTriggers:
- mew
@ -19,6 +26,13 @@
id: Meow
name: chat-emote-name-meows
category: Vocal
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [мяу!]
chatTriggers:
- Meows
@ -38,6 +52,13 @@
id: Hisses
name: chat-emote-name-hisses
category: Vocal
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [шипит!]
chatTriggers:
- шипит
@ -54,6 +75,13 @@
id: Purr
name: chat-emote-name-purrs
category: Vocal
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [мурчит!]
chatTriggers:
- мурчит
@ -67,6 +95,13 @@
id: Growl
name: chat-emote-name-growls
category: Vocal
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [рычит!]
chatTriggers:
- рычит
@ -80,8 +115,22 @@
id: Bark
name: chat-emote-name-bark
category: Vocal
chatMessages: [barks.]
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [лает.]
chatTriggers:
- гав
- гав.
- гав!
- лает
- лаять
- лает!
- лает.
- bark.
- bark!
- barks.
@ -94,8 +143,21 @@
id: Howl
name: chat-emote-name-howl
category: Vocal
chatMessages: [howls.]
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [воет.]
chatTriggers:
- выть
- воет
- воет!
- воет.
- выть.
- выть!
- howl.
- howl!
- howls.
@ -107,7 +169,23 @@
id: Oink
name: chat-emote-name-oink
category: Vocal
available: false
whitelist:
components:
- Vocal
blacklist:
components:
- BorgChassis
chatMessages: [хрю!]
chatTriggers:
- хрюкает.
- хрюкает!
- хрюкать.
- хрюкать!
- хрюкать
- хрю.
- хрю!
- хрю
- хряк.
- хряк
- хряк!

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 435 B

After

Width:  |  Height:  |  Size: 409 B

View file

@ -1,12 +1,31 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Спизжено из SS13 Paradise",
"copyright": "Icon Taked from SS13 Paradise, analyzer by Rinary1",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "analyzer",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.1,
0.5
]
]
},
{
"name": "icon"
}