Всякое (#96)
* - tweak: Pull eaxe from uplink. * - tweak: Nerf spear. * - tweak: Give sec hardsuits heat resist. * - tweak: Revert mistakes. * - tweak: No discounts for nukies. * - tweak: Nerf hardsuit prices. * - fix: Fix cult chat whisper.
This commit is contained in:
@@ -21,7 +21,6 @@ using Content.Shared.Input;
|
|||||||
using Content.Shared.Radio;
|
using Content.Shared.Radio;
|
||||||
using Content.Shared._White;
|
using Content.Shared._White;
|
||||||
using Content.Shared._White.Utils;
|
using Content.Shared._White.Utils;
|
||||||
using Content.Shared._White.Cult;
|
|
||||||
using Content.Shared._White.Cult.Systems;
|
using Content.Shared._White.Cult.Systems;
|
||||||
using Robust.Client.Graphics;
|
using Robust.Client.Graphics;
|
||||||
using Robust.Client.Input;
|
using Robust.Client.Input;
|
||||||
@@ -54,7 +53,6 @@ public sealed class ChatUIController : UIController
|
|||||||
[Dependency] private readonly IGameTiming _timing = default!;
|
[Dependency] private readonly IGameTiming _timing = default!;
|
||||||
[Dependency] private readonly IReplayRecordingManager _replayRecording = default!;
|
[Dependency] private readonly IReplayRecordingManager _replayRecording = default!;
|
||||||
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
||||||
[Dependency] private readonly CultistWordGeneratorManager _wordGenerator = default!;
|
|
||||||
[Dependency] private readonly IEntityManager _entities = default!;
|
[Dependency] private readonly IEntityManager _entities = default!;
|
||||||
|
|
||||||
[UISystemDependency] private readonly ExamineSystem? _examine = default;
|
[UISystemDependency] private readonly ExamineSystem? _examine = default;
|
||||||
@@ -850,13 +848,6 @@ public sealed class ChatUIController : UIController
|
|||||||
AddSpeechBubble(msg, SpeechBubble.SpeechType.Whisper);
|
AddSpeechBubble(msg, SpeechBubble.SpeechType.Whisper);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// WD EDIT
|
|
||||||
case ChatChannel.Cult:
|
|
||||||
msg.Message = _wordGenerator.GenerateText(msg.Message);
|
|
||||||
AddSpeechBubble(msg, SpeechBubble.SpeechType.Whisper);
|
|
||||||
break;
|
|
||||||
// WD EDIT END
|
|
||||||
|
|
||||||
case ChatChannel.Dead:
|
case ChatChannel.Dead:
|
||||||
if (_ghost is not {IsGhost: true})
|
if (_ghost is not {IsGhost: true})
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ using Content.Shared.Radio;
|
|||||||
using Content.Shared._White;
|
using Content.Shared._White;
|
||||||
using Content.Shared.Speech;
|
using Content.Shared.Speech;
|
||||||
using Content.Shared._White.Cult;
|
using Content.Shared._White.Cult;
|
||||||
|
using Content.Shared._White.Cult.Systems;
|
||||||
using Robust.Server.Player;
|
using Robust.Server.Player;
|
||||||
using Robust.Shared.Audio;
|
using Robust.Shared.Audio;
|
||||||
using Robust.Shared.Audio.Systems;
|
using Robust.Shared.Audio.Systems;
|
||||||
@@ -67,6 +68,7 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||||||
[Dependency] private readonly ReplacementAccentSystem _wordreplacement = default!;
|
[Dependency] private readonly ReplacementAccentSystem _wordreplacement = default!;
|
||||||
[Dependency] private readonly INetConfigurationManager _netConfigurationManager = default!; // WD
|
[Dependency] private readonly INetConfigurationManager _netConfigurationManager = default!; // WD
|
||||||
[Dependency] private readonly GameTicker _gameTicker = default!; // WD
|
[Dependency] private readonly GameTicker _gameTicker = default!; // WD
|
||||||
|
[Dependency] private readonly CultistWordGeneratorManager _wordGenerator = default!; // WD
|
||||||
|
|
||||||
//WD-EDIT
|
//WD-EDIT
|
||||||
[Dependency] private readonly PandaWebManager _pandaWeb = default!;
|
[Dependency] private readonly PandaWebManager _pandaWeb = default!;
|
||||||
@@ -816,6 +818,8 @@ public sealed partial class ChatSystem : SharedChatSystem
|
|||||||
|
|
||||||
_chatManager.ChatMessageToMany(ChatChannel.Cult, message, wrappedMessage, source, hideChat, false,
|
_chatManager.ChatMessageToMany(ChatChannel.Cult, message, wrappedMessage, source, hideChat, false,
|
||||||
clients.ToList());
|
clients.ToList());
|
||||||
|
|
||||||
|
SendEntityWhisper(source, _wordGenerator.GenerateText(message), ChatTransmitRange.Normal, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerable<INetChannel> GetCultChatClients()
|
private IEnumerable<INetChannel> GetCultChatClients()
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Linq;
|
||||||
using Robust.Shared.Random;
|
using Robust.Shared.Random;
|
||||||
|
|
||||||
namespace Content.Shared._White.Cult.Systems;
|
namespace Content.Shared._White.Cult.Systems;
|
||||||
@@ -14,7 +15,7 @@ public sealed class CultistWordGeneratorManager
|
|||||||
|
|
||||||
public string GenerateText(string text)
|
public string GenerateText(string text)
|
||||||
{
|
{
|
||||||
var content = text.Split(' ');
|
var content = text.Split(' ').Where(x => x.Length > 0).ToArray();
|
||||||
var wordsAmount = content.Length;
|
var wordsAmount = content.Length;
|
||||||
|
|
||||||
if (wordsAmount <= 0)
|
if (wordsAmount <= 0)
|
||||||
@@ -22,10 +23,10 @@ public sealed class CultistWordGeneratorManager
|
|||||||
|
|
||||||
for (var i = 0; i < wordsAmount; i++)
|
for (var i = 0; i < wordsAmount; i++)
|
||||||
{
|
{
|
||||||
content[i] = GenerateWord(content[i].Length) + " ";
|
content[i] = GenerateWord(content[i].Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
return string.Join("", content);
|
return string.Join(" ", content);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GenerateWord(int length)
|
private string GenerateWord(int length)
|
||||||
|
|||||||
@@ -1311,7 +1311,7 @@
|
|||||||
description: uplink-hardsuit-syndieelite-desc
|
description: uplink-hardsuit-syndieelite-desc
|
||||||
productEntity: ClothingOuterHardsuitSyndieElite
|
productEntity: ClothingOuterHardsuitSyndieElite
|
||||||
cost:
|
cost:
|
||||||
Telecrystal: 10
|
Telecrystal: 12
|
||||||
categories:
|
categories:
|
||||||
- UplinkArmor
|
- UplinkArmor
|
||||||
saleLimit: 1
|
saleLimit: 1
|
||||||
@@ -1322,7 +1322,7 @@
|
|||||||
description: uplink-clothing-outer-hardsuit-juggernaut-desc
|
description: uplink-clothing-outer-hardsuit-juggernaut-desc
|
||||||
productEntity: ClothingOuterHardsuitJuggernaut
|
productEntity: ClothingOuterHardsuitJuggernaut
|
||||||
cost:
|
cost:
|
||||||
Telecrystal: 12
|
Telecrystal: 20
|
||||||
categories:
|
categories:
|
||||||
- UplinkArmor
|
- UplinkArmor
|
||||||
saleLimit: 1
|
saleLimit: 1
|
||||||
|
|||||||
@@ -210,6 +210,7 @@
|
|||||||
Slash: 0.6
|
Slash: 0.6
|
||||||
Piercing: 0.6
|
Piercing: 0.6
|
||||||
Caustic: 0.7
|
Caustic: 0.7
|
||||||
|
Heat: 0.7
|
||||||
- type: ClothingSpeedModifier
|
- type: ClothingSpeedModifier
|
||||||
walkModifier: 0.85
|
walkModifier: 0.85
|
||||||
sprintModifier: 0.85
|
sprintModifier: 0.85
|
||||||
@@ -234,6 +235,7 @@
|
|||||||
Blunt: 0.8
|
Blunt: 0.8
|
||||||
Slash: 0.8
|
Slash: 0.8
|
||||||
Piercing: 0.7
|
Piercing: 0.7
|
||||||
|
Heat: 0.9
|
||||||
- type: ToggleableClothing
|
- type: ToggleableClothing
|
||||||
clothingPrototype: ClothingHeadHelmetHardsuitBrigmedic
|
clothingPrototype: ClothingHeadHelmetHardsuitBrigmedic
|
||||||
|
|
||||||
@@ -252,12 +254,10 @@
|
|||||||
modifiers:
|
modifiers:
|
||||||
coefficients:
|
coefficients:
|
||||||
Blunt: 0.55
|
Blunt: 0.55
|
||||||
Slash: 0.65
|
Slash: 0.55
|
||||||
Piercing: 0.65
|
Piercing: 0.55
|
||||||
Caustic: 0.75
|
Caustic: 0.65
|
||||||
- type: ClothingSpeedModifier
|
Heat: 0.65
|
||||||
walkModifier: 0.8
|
|
||||||
sprintModifier: 0.8
|
|
||||||
- type: ToggleableClothing
|
- type: ToggleableClothing
|
||||||
clothingPrototype: ClothingHeadHelmetHardsuitWarden
|
clothingPrototype: ClothingHeadHelmetHardsuitWarden
|
||||||
|
|
||||||
@@ -285,6 +285,7 @@
|
|||||||
Piercing: 0.5
|
Piercing: 0.5
|
||||||
Radiation: 0.5
|
Radiation: 0.5
|
||||||
Caustic: 0.6
|
Caustic: 0.6
|
||||||
|
Heat: 0.6
|
||||||
- type: ToggleableClothing
|
- type: ToggleableClothing
|
||||||
clothingPrototype: ClothingHeadHelmetHardsuitSecurityRed
|
clothingPrototype: ClothingHeadHelmetHardsuitSecurityRed
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@
|
|||||||
suffix: 40 TC, NukeOps
|
suffix: 40 TC, NukeOps
|
||||||
components:
|
components:
|
||||||
- type: Store
|
- type: Store
|
||||||
preset: StorePresetUplink
|
preset: StorePresetUplinkNukeOps
|
||||||
balance:
|
balance:
|
||||||
Telecrystal: 40
|
Telecrystal: 40
|
||||||
- type: Tag
|
- type: Tag
|
||||||
|
|||||||
@@ -85,8 +85,8 @@
|
|||||||
- type: Projectile
|
- type: Projectile
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Piercing: 4
|
Piercing: 3
|
||||||
Slash: 4 #remember, it's metal shrapnel!
|
Slash: 3 #remember, it's metal shrapnel!
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: PelletShotgunTranquilizer
|
id: PelletShotgunTranquilizer
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
Blunt: 0
|
Blunt: 0
|
||||||
- type: Stunprod
|
- type: Stunprod
|
||||||
- type: MeleeWeapon
|
- type: MeleeWeapon
|
||||||
attackRate: 1.25
|
|
||||||
canHeavyAttack: false
|
canHeavyAttack: false
|
||||||
wideAnimationRotation: -135
|
wideAnimationRotation: -135
|
||||||
damage:
|
damage:
|
||||||
|
|||||||
@@ -24,6 +24,23 @@
|
|||||||
maxItems: 10
|
maxItems: 10
|
||||||
salesCategory: UplinkSales
|
salesCategory: UplinkSales
|
||||||
|
|
||||||
|
- type: storePreset
|
||||||
|
id: StorePresetUplinkNukeOps
|
||||||
|
storeName: Uplink
|
||||||
|
categories:
|
||||||
|
- UplinkWeapons
|
||||||
|
- UplinkAmmo
|
||||||
|
- UplinkExplosives
|
||||||
|
- UplinkMisc
|
||||||
|
- UplinkBundles
|
||||||
|
- UplinkTools
|
||||||
|
- UplinkUtility
|
||||||
|
- UplinkImplants
|
||||||
|
- UplinkArmor
|
||||||
|
- UplinkPointless
|
||||||
|
currencyWhitelist:
|
||||||
|
- Telecrystal
|
||||||
|
|
||||||
- type: storePreset
|
- type: storePreset
|
||||||
id: StorePresetChangeling
|
id: StorePresetChangeling
|
||||||
storeName: Evolution Shop
|
storeName: Evolution Shop
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
noSpawn: true
|
noSpawn: true
|
||||||
components:
|
components:
|
||||||
- type: InstantAction
|
- type: InstantAction
|
||||||
useDelay: 2
|
useDelay: 1.5
|
||||||
itemIconStyle: BigAction
|
itemIconStyle: BigAction
|
||||||
priority: -20
|
priority: -20
|
||||||
icon:
|
icon:
|
||||||
|
|||||||
@@ -100,14 +100,14 @@
|
|||||||
categories:
|
categories:
|
||||||
- UplinkArmor
|
- UplinkArmor
|
||||||
|
|
||||||
- type: listing
|
#- type: listing
|
||||||
id: UplinkBattleAxe
|
# id: UplinkBattleAxe
|
||||||
name: Энергетической боевой топор
|
# name: Энергетической боевой топор
|
||||||
description: Мощный боевой топор, способный повалить с одного удара любую незащищенную цель.
|
# description: Мощный боевой топор, способный повалить с одного удара любую незащищенную цель.
|
||||||
icon: { sprite: /Textures/White/Objects/Weapons/energy_axe.rsi, state: icon }
|
# icon: { sprite: /Textures/White/Objects/Weapons/energy_axe.rsi, state: icon }
|
||||||
productEntity: EnergyBattleAxe
|
# productEntity: EnergyBattleAxe
|
||||||
cost:
|
# cost:
|
||||||
Telecrystal: 20
|
# Telecrystal: 20
|
||||||
categories:
|
# categories:
|
||||||
- UplinkWeapons
|
# - UplinkWeapons
|
||||||
saleLimit: 1
|
# saleLimit: 1
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
- type: DamageOtherOnHit
|
- type: DamageOtherOnHit
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Piercing: 30
|
Piercing: 20
|
||||||
Heat: 30
|
Heat: 20
|
||||||
- type: Wieldable
|
- type: Wieldable
|
||||||
- type: IncreaseDamageOnWield
|
- type: IncreaseDamageOnWield
|
||||||
damage:
|
damage:
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
energy: 2
|
energy: 2
|
||||||
color: yellow
|
color: yellow
|
||||||
- type: ChangeThrowForce
|
- type: ChangeThrowForce
|
||||||
throwForce: 20
|
throwForce: 15
|
||||||
- type: Fixtures
|
- type: Fixtures
|
||||||
fixtures:
|
fixtures:
|
||||||
fix1:
|
fix1:
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
types:
|
types:
|
||||||
Blunt: 0
|
Blunt: 0
|
||||||
- type: MeleeWeapon
|
- type: MeleeWeapon
|
||||||
attackRate: 1.25
|
|
||||||
canHeavyAttack: false
|
canHeavyAttack: false
|
||||||
wideAnimationRotation: -135
|
wideAnimationRotation: -135
|
||||||
damage:
|
damage:
|
||||||
|
|||||||
Reference in New Issue
Block a user