Merge remote-tracking branch 'refs/remotes/wizards/master'

This commit is contained in:
VigersRay 2024-07-27 00:32:31 +03:00
commit 7e989794b7
10 changed files with 38 additions and 37 deletions

View file

@ -380,7 +380,7 @@ namespace Content.Client.Arcade
{
PanelOverride = back,
HorizontalExpand = true,
SizeFlagsStretchRatio = 60
SizeFlagsStretchRatio = 34.25f
};
var backgroundPanel = new PanelContainer
{

View file

@ -17,6 +17,7 @@ public sealed class BlockGameBoundUserInterface : BoundUserInterface
base.Open();
_menu = this.CreateWindow<BlockGameMenu>();
_menu.OnAction += SendAction;
}
protected override void ReceiveMessage(BoundUserInterfaceMessage message)

View file

@ -25,6 +25,7 @@ public sealed class SpaceVillainArcadeBoundUserInterface : BoundUserInterface
base.Open();
_menu = this.CreateWindow<SpaceVillainArcadeMenu>();
_menu.OnPlayerAction += SendAction;
}
protected override void ReceiveMessage(BoundUserInterfaceMessage message)

View file

@ -157,7 +157,7 @@ public sealed partial class BlockGame
/// <param name="message">The message to broadcase to all players/spectators.</param>
private void SendMessage(BoundUserInterfaceMessage message)
{
_uiSystem.ServerSendUiMessage(_entityManager.GetEntity(message.Entity), BlockGameUiKey.Key, message);
_uiSystem.ServerSendUiMessage(_owner, BlockGameUiKey.Key, message);
}
/// <summary>
@ -167,7 +167,7 @@ public sealed partial class BlockGame
/// <param name="actor">The target recipient.</param>
private void SendMessage(BoundUserInterfaceMessage message, EntityUid actor)
{
_uiSystem.ServerSendUiMessage(_entityManager.GetEntity(message.Entity), BlockGameUiKey.Key, message, actor);
_uiSystem.ServerSendUiMessage(_owner, BlockGameUiKey.Key, message, actor);
}
/// <summary>

View file

@ -31,7 +31,7 @@ public sealed class CharacterInfoSystem : EntitySystem
var entity = args.SenderSession.AttachedEntity.Value;
var objectives = new Dictionary<string, List<ObjectiveInfo>>();
var jobTitle = "No Profession";
var jobTitle = Loc.GetString("character-info-no-profession");
string? briefing = null;
if (_minds.TryGetMind(entity, out var mindId, out var mind))
{

View file

@ -58,7 +58,7 @@ namespace Content.Shared.Cuffs
{
base.Initialize();
SubscribeLocalEvent<HandCountChangedEvent>(OnHandCountChanged);
SubscribeLocalEvent<CuffableComponent, HandCountChangedEvent>(OnHandCountChanged);
SubscribeLocalEvent<UncuffAttemptEvent>(OnUncuffAttempt);
SubscribeLocalEvent<CuffableComponent, EntRemovedFromContainerMessage>(OnCuffsRemovedFromContainer);
@ -380,33 +380,24 @@ namespace Content.Shared.Cuffs
/// <summary>
/// Check the current amount of hands the owner has, and if there's less hands than active cuffs we remove some cuffs.
/// </summary>
private void OnHandCountChanged(HandCountChangedEvent message)
private void OnHandCountChanged(Entity<CuffableComponent> ent, ref HandCountChangedEvent message)
{
var owner = message.Sender;
if (!TryComp(owner, out CuffableComponent? cuffable) ||
!cuffable.Initialized)
{
return;
}
var dirty = false;
var handCount = CompOrNull<HandsComponent>(owner)?.Count ?? 0;
var handCount = CompOrNull<HandsComponent>(ent.Owner)?.Count ?? 0;
while (cuffable.CuffedHandCount > handCount && cuffable.CuffedHandCount > 0)
while (ent.Comp.CuffedHandCount > handCount && ent.Comp.CuffedHandCount > 0)
{
dirty = true;
var container = cuffable.Container;
var entity = container.ContainedEntities[^1];
var handcuffContainer = ent.Comp.Container;
var handcuffEntity = handcuffContainer.ContainedEntities[^1];
_container.Remove(entity, container);
_transform.SetWorldPosition(entity, _transform.GetWorldPosition(owner));
_transform.PlaceNextTo(handcuffEntity, ent.Owner);
}
if (dirty)
{
UpdateCuffState(owner, cuffable);
UpdateCuffState(ent.Owner, ent.Comp);
}
}

View file

@ -1,19 +1,4 @@
Entries:
- author: Hanzdegloker
changes:
- message: '"Denied" and "Approved" stamps are now guaranteed to appear in the lockers
of the HoP and QM.'
type: Tweak
id: 6486
time: '2024-04-29T03:38:45.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/25604
- author: Potato1234_x
changes:
- message: Added rainbow weed. It is obtained by mutating regular weed.
type: Add
id: 6487
time: '2024-04-29T04:06:27.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/25759
- author: Gotimanga
changes:
- message: Chemists can now create opporozidone, which reverses the effects of rotting
@ -3784,3 +3769,17 @@
id: 6985
time: '2024-07-26T12:59:43.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/30273
- author: themias
changes:
- message: Arcade machines are functional again
type: Fix
id: 6986
time: '2024-07-26T17:30:50.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/30376
- author: themias
changes:
- message: Zombies now get uncuffed upon transformation
type: Fix
id: 6987
time: '2024-07-26T18:48:03.0000000+00:00'
url: https://github.com/space-wizards/space-station-14/pull/30321

View file

@ -1,3 +1,4 @@
character-info-title = Character
character-info-roles-antagonist-text = Antagonist Roles
character-info-objectives-label = Objectives
character-info-no-profession = No Profession

View file

@ -29,7 +29,7 @@
ejectOnInteract: true
whitelist:
components:
- FireExtinguisher
- SpraySafety
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic

View file

@ -52,6 +52,14 @@
- [color=#449944]Acceptable:[/color] Loxosceles Domesticus
- [color=#994444]Bad:[/color] Spider-Man
Vox typically use a single name made of random syllables, often with repeating patterns.
Names should not be excessively long or be so repetitive/convoluted as to be unreadable.
- [color=#449944]Acceptable:[/color] Hirixashahre
- [color=#449944]Acceptable:[/color] Xapikrikrik
- [color=#994444]Bad:[/color] Chipikirchitchitchitbecretretrer
- [color=#994444]Bad:[/color] Trololol
Usernames, objects, random characters, very "low effort" names, "meta" names, or otherwise implausible names are not permitted.
- [color=#994444]Bad:[/color] XxRobustxX
- [color=#994444]Bad:[/color] SDpksSodjdfk