Всякое (#474)

* Economy price tweaks

* Fix slang & crit radio & explosion immunity & tweak spiders and slimes

* Fix vending message

* Typo

* Style
This commit is contained in:
Aviu00
2023-10-08 19:43:45 +09:00
committed by Aviu00
parent 4e73e606c9
commit a29e004eba
8 changed files with 52 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ public sealed class ChatSanitizationManager : IChatSanitizationManager
//WD-EDIT
public string SanitizeOutSlang(string input)
{
var pattern = @"([\?\!\p{L}\d'`-]+)";
var pattern = @"(^\!|^\?|[\p{L}\d'`-]+)";
var newMessage = Regex.Replace(input, pattern ,
match => _slangToNormal.ContainsKey(match.Groups[1].Value.ToLower()) ? _slangToNormal[match.Groups[1].Value.ToLower()] : match.Value, RegexOptions.IgnoreCase);

View File

@@ -75,7 +75,11 @@ public sealed class CritMobActionsSystem : EntitySystem
}
lastWords += "...";
_chat.TrySendInGameICMessage(uid, lastWords, InGameICChatType.Whisper, ChatTransmitRange.Normal, checkRadioPrefix: false, ignoreActionBlocker: true);
// WD EDIT START
_chat.TryProccessRadioMessage(uid, lastWords, out var output, out _);
_chat.TrySendInGameICMessage(uid, output, InGameICChatType.Whisper, ChatTransmitRange.Normal, checkRadioPrefix: false, ignoreActionBlocker: true);
// WD EDIT END
_host.ExecuteCommand(actor.PlayerSession, "ghost");
});

View File

@@ -1 +1,2 @@
vending-ui-credits-amount = Кредитов в автомате: { $credits }
vending-machine-component-no-balance = Недостаточно средств.

View File

@@ -42,6 +42,7 @@
volume: 3
- type: Tag
tags:
- DoorBumpOpener
- FootstepSound
- type: Butcherable
butcheringType: Knife

View File

@@ -73,6 +73,8 @@
- type: PhysicalComposition
materialComposition:
Glass: 100
- type: StaticPrice
price: 50
- type: entity
parent: DrinkBottleGlassBaseFull

View File

@@ -530,6 +530,8 @@
- id: GoldenBikeHorn
prob: 0.1
orGroup: GiftPool
- type: StaticPrice
price: 30
- type: entity
id: HappyHonkMime

View File

@@ -952,7 +952,6 @@
normalState: normal-unshaded
ejectState: eject-unshaded
denyState: deny-unshaded
priceMultiplier: 1.0
- type: Sprite
sprite: Structures/Machines/VendingMachines/sustenance.rsi
layers:

View File

@@ -71,6 +71,26 @@
- type: AntiRottingContainer
- type: StaticPrice
price: 200
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- type: entity
id: Crematorium
@@ -141,3 +161,23 @@
False: { visible: false }
- type: Transform
anchored: true
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg