Фиксы и твики (#29)

* - fix: Fix speech verbs

* - fix: Fix ling chat

* - add: Chemical check before regeneration

* - tweak: Tweak ling armor

* - tweak: Tweak fleshmend

* - tweak: Stims no longer satiate hunger & thirst

* - add: New bleed alert

* - fix: Add missing bool
This commit is contained in:
Aviu00
2024-02-07 00:41:09 +09:00
committed by GitHub
parent 1105109152
commit 07bb3cae88
9 changed files with 45 additions and 28 deletions

View File

@@ -547,12 +547,18 @@ public sealed class ChatUIController : UIController
}
// WD EDIT
var localEnt = _player.LocalPlayer != null ? _player.LocalPlayer.ControlledEntity : null;
if (_entities.TryGetComponent(localEnt, out CultistComponent? comp))
var localEnt = _player.LocalEntity;
if (_entities.HasComponent<CultistComponent>(localEnt))
{
FilterableChannels |= ChatChannel.Cult;
CanSendChannels |= ChatSelectChannel.Cult;
}
if (_entities.HasComponent<ChangelingComponent>(localEnt))
{
FilterableChannels |= ChatChannel.Changeling;
CanSendChannels |= ChatSelectChannel.Changeling;
}
// WD EDIT END
SelectableChannels = CanSendChannels;