Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Up september #96

Merged
merged 68 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
6d68321
adds IDs for washington brotherhood
Peptide90 Sep 6, 2024
7571d2d
Adding more recipes tables (#507)
MrLopLop Sep 7, 2024
1d007f0
Added Accesses for Slanted doors. (Including new shopkeeper and docto…
MutantMan2040 Sep 9, 2024
a758f73
Jet recipe tweak (#512)
Ed-Head Sep 9, 2024
fe326ae
update orgroups for spawners and reduce radaway spawning
Peptide90 Sep 10, 2024
cfdb5e2
brahmin dung fix (#515)
Ed-Head Sep 10, 2024
d09fbc9
fix shelf drawdepth hiding items, this was necessary for tall walls
Peptide90 Sep 10, 2024
9ea5ada
Merge remote-tracking branch 'origin/master'
Peptide90 Sep 10, 2024
8f8f52a
fix linter
Peptide90 Sep 10, 2024
129e36d
Fix 125 Toolshed Commands Being Unusable for Anyone without +HOST (#5…
Peptide90 Sep 13, 2024
b610ff5
Sawed Off Shotgun (#509)
MutantMan2040 Sep 14, 2024
cd47b49
Added weapon recipes and minor fixes (#523)
MrLopLop Sep 14, 2024
9d5c4ba
Sunnyvale Now in Washington (#524)
OldDanceJacket Sep 14, 2024
358d885
Middle-major crafting update (#520)
VlaDOS1408 Sep 15, 2024
0fb1aaa
Sunnyvale v1.1 (#526)
OldDanceJacket Sep 16, 2024
8dc036c
Upstream merge 16th Sept 2024 (#527)
Peptide90 Sep 18, 2024
6df11f1
128th landmine resprite (#514)
128th Sep 18, 2024
aa9ec6c
winterized NCR (#528)
PatoGrone Sep 18, 2024
a78a8ad
adds weather to all tiles
Peptide90 Sep 19, 2024
8a0b164
Merge remote-tracking branch 'origin/master'
Peptide90 Sep 19, 2024
855e410
fix map and error spam
Peptide90 Sep 19, 2024
c6817f5
cvar updates
Peptide90 Sep 19, 2024
0fd9672
Landmine wiggle fix (#533)
128th Sep 19, 2024
06e1a0d
Loadout expansion (#534)
128th Sep 19, 2024
a291fc3
Adds new lobby music from FNV and moves all N14 music to subfolder (#…
Peptide90 Sep 19, 2024
c0037dc
addictions for jet and psycho (#535)
Peptide90 Sep 19, 2024
d34d051
the rest of the craftible chems (#536)
Ed-Head Sep 20, 2024
9cbc289
fixed plant display names (#538)
saintmuntzer Sep 20, 2024
675ba65
Variations and dungeons fix (#539)
Peptide90 Sep 20, 2024
fd2a22c
NEW WEAPONS + Weapon size balances (#517)
MutantMan2040 Sep 20, 2024
d74b224
fix loadouts error
Peptide90 Sep 20, 2024
f7ce74e
F3 songs + Jukebox (#540)
Peptide90 Sep 21, 2024
d72833c
MercerIsland hotfix (#543)
OldDanceJacket Sep 21, 2024
c5a9d65
increase feral dog bb from 0.2 to 0.3
Peptide90 Sep 22, 2024
499db86
bedroll rework (#551)
saintmuntzer Sep 25, 2024
dfa9469
Weapon ID Standardisation (#550)
Peptide90 Sep 25, 2024
ea30417
Half wall, wood frame, and "infinite wood" fix (#547)
saintmuntzer Sep 25, 2024
3f45036
better welding fuel generator (#544)
Ed-Head Sep 25, 2024
061edf5
make all containers not airtight by default
Peptide90 Sep 25, 2024
8457668
fix ranger whitelist requirement (#552)
Peptide90 Sep 25, 2024
0a4f12c
change player join and round start messages to Fallout
Peptide90 Sep 25, 2024
7c5b45a
Merge remote-tracking branch 'origin/master'
Peptide90 Sep 25, 2024
23ce003
increase character slots to 15
Peptide90 Sep 26, 2024
a7eda3e
misc fixes, loot pool reduced probability
Peptide90 Sep 27, 2024
ba3cf5a
fix bedroll
Peptide90 Sep 27, 2024
5021d70
New Materials (#545)
MrLopLop Sep 28, 2024
4c0dbf6
fix linter
Peptide90 Sep 28, 2024
97506f8
Junk liquid containers and radio crafting (#553)
Peptide90 Sep 28, 2024
82ebe42
fix maps
Peptide90 Sep 28, 2024
749775c
fix washington accesses
Peptide90 Sep 28, 2024
a527774
migrations
Peptide90 Sep 28, 2024
e42375f
fix sprite (#554)
MrLopLop Sep 29, 2024
d774f01
fix washington id loadout
Peptide90 Sep 29, 2024
8b82d9f
Add Essentials to NCR MP Starting Kit (#555)
PursuitInAshes Sep 30, 2024
969f30f
Fixes time requirements (#556)
BlueHNT Oct 1, 2024
5e1b0ec
Vault doors (#557)
Peptide90 Oct 1, 2024
483221d
fix spawnpoint IDs
Peptide90 Oct 1, 2024
a810a4e
remove ghost role takeover from deathclaw and robots
Peptide90 Oct 1, 2024
dac3a2b
Upstream
Sh1ntra Oct 3, 2024
f41aeb3
try fix upstream v1
Sh1ntra Oct 3, 2024
32a9b1a
try fix upstream v2
Sh1ntra Oct 3, 2024
2754ef2
try fix upstream vIDONTKNOW
Sh1ntra Oct 3, 2024
74502df
try fix upstream v4
Sh1ntra Oct 3, 2024
bf1a016
try fix upstream v5
Sh1ntra Oct 3, 2024
dd68d3c
try fix upstream v6
Sh1ntra Oct 3, 2024
adabd1c
Фикс апстрима
Zekins3366 Oct 7, 2024
42de432
Ещё фикс
Zekins3366 Oct 7, 2024
ba9f2a1
Ещё фикс x2
Zekins3366 Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Request a Feature
about: "Template for noting future planned features. Please ask for approval in the Discord if you aren't an organization Member before posting a feature request"
name: Request a feature
about: "Please outline your request in Discord first if you aren't a maintainer."
title: ''
labels: ''
labels: ["Type: Feature"]
assignees: ''

---
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/issue_report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Report an Issue
about: "Any general issues you have during play or with the codebase"
name: Report an issue
about: "Any issues found in gameplay or the codebase"
title: ''
labels: ''
labels: 'Type: Bug'
assignees: ''

---
Expand Down
65 changes: 32 additions & 33 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,40 @@ jobs:
permissions:
contents: write
steps:
- name: Checkout Master
uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_TOKEN }}
ref: "${{ vars.CHANGELOG_BRANCH }}"
- name: Checkout Master
uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_TOKEN }}
ref: ${{ vars.CHANGELOG_BRANCH }}

- name: Setup Git
run: |
git config --global user.name "${{ vars.CHANGELOG_USER }}"
git config --global user.email "${{ vars.CHANGELOG_EMAIL }}"
shell: bash
- name: Setup Git
run: |
git config --global user.name "${{ vars.CHANGELOG_USER }}"
git config --global user.email "${{ vars.CHANGELOG_EMAIL }}"
shell: bash

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install Dependencies
run: |
cd "Tools/changelogs"
npm install
shell: bash
continue-on-error: true
- name: Install Dependencies
run: |
cd "Tools/changelogs"
npm install
shell: bash

- name: Generate Changelog
run: |
cd "Tools/changelogs"
node changelog.js
shell: bash
continue-on-error: true
- name: Generate Changelog
run: |
cd "Tools/changelogs"
node changelog.js
shell: bash

- name: Commit Changelog
run: |
git add *.yml
git commit -m "${{ vars.CHANGELOG_MESSAGE }} (#${{ env.PR_NUMBER }})"
git push
shell: bash
continue-on-error: true
- name: Commit Changelog
run: |
git pull origin master
git add *.yml
git commit -m "${{ vars.CHANGELOG_MESSAGE }} (#${{ env.PR_NUMBER }})"
git push
shell: bash
continue-on-error: true
24 changes: 24 additions & 0 deletions .github/workflows/discord-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Discord Changelog

on:
workflow_dispatch:
schedule:
- cron: '0 6 * * *'

jobs:
publish_changelog:
runs-on: ubuntu-latest
steps:

- name: checkout
uses: actions/checkout@v3
with:
ref: master

- name: Publish changelog
run: Tools/actions_changelogs_since_last_run.py
env:
CHANGELOG_DIR: ${{ vars.CHANGELOG_DIR }}
CHANGELOG_WEBHOOK: ${{ secrets.CHANGELOG_WEBHOOK }}
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
continue-on-error: true
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,7 @@ Resources/MapImages

# Changelog package lock
package-lock.json
/Resources/Prototypes/Entities/Mobs/Player/slime.yml
/Resources/Prototypes/Guidebook
/Resources/Prototypes/Loadouts
/Resources/Prototypes/Catalog
2 changes: 1 addition & 1 deletion Content.Benchmarks/SpawnEquipDeleteBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ await _pair.Server.WaitPost(() =>
for (var i = 0; i < N; i++)
{
_entity = server.EntMan.SpawnAttachedTo(Mob, _coords);
_spawnSys.EquipStartingGear(_entity, _gear, null);
_spawnSys.EquipStartingGear(_entity, _gear);
server.EntMan.DeleteEntity(_entity);
}
});
Expand Down
1 change: 1 addition & 0 deletions Content.Client/Actions/ActionsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private void OnEntityTargetHandleState(EntityUid uid, EntityTargetActionComponen
return;

component.Whitelist = state.Whitelist;
component.Blacklist = state.Blacklist;
component.CanTargetSelf = state.CanTargetSelf;
BaseHandleState<EntityTargetActionComponent>(uid, component, state);
}
Expand Down
21 changes: 7 additions & 14 deletions Content.Client/Administration/Systems/AdminSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,9 @@ public sealed partial class AdminSystem : EntitySystem
{
public event Action<List<PlayerInfo>>? PlayerListChanged;

private Dictionary<NetUserId, PlayerInfo>? _playerList;
public IReadOnlyList<PlayerInfo> PlayerList
{
get
{
if (_playerList != null) return _playerList.Values.ToList();

return new List<PlayerInfo>();
}
}
public Dictionary<NetUserId, PlayerInfo> PlayerInfos = new();
public IReadOnlyList<PlayerInfo> PlayerList =>
PlayerInfos != null ? PlayerInfos.Values.ToList() : new List<PlayerInfo>();

public override void Initialize()
{
Expand All @@ -40,15 +33,15 @@ private void OnPlayerInfoChanged(PlayerInfoChangedEvent ev)
{
if(ev.PlayerInfo == null) return;

if (_playerList == null) _playerList = new();
if (PlayerInfos == null) PlayerInfos = new();

_playerList[ev.PlayerInfo.SessionId] = ev.PlayerInfo;
PlayerListChanged?.Invoke(_playerList.Values.ToList());
PlayerInfos[ev.PlayerInfo.SessionId] = ev.PlayerInfo;
PlayerListChanged?.Invoke(PlayerInfos.Values.ToList());
}

private void OnPlayerListChanged(FullPlayerListEvent msg)
{
_playerList = msg.PlayersInfo.ToDictionary(x => x.SessionId, x => x);
PlayerInfos = msg.PlayersInfo.ToDictionary(x => x.SessionId, x => x);
PlayerListChanged?.Invoke(msg.PlayersInfo);
}
}
Expand Down
11 changes: 9 additions & 2 deletions Content.Client/Administration/Systems/BwoinkSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#nullable enable
using Content.Client.UserInterface.Systems.Bwoink;
using Content.Shared.Administration;
using JetBrains.Annotations;
using Robust.Client.Audio;
using Robust.Shared.Network;
using Robust.Shared.Player;
using Robust.Shared.Timing;

namespace Content.Client.Administration.Systems
Expand All @@ -10,6 +13,8 @@ namespace Content.Client.Administration.Systems
public sealed class BwoinkSystem : SharedBwoinkSystem
{
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly AudioSystem _audio = default!;
[Dependency] private readonly AdminSystem _adminSystem = default!;

public event EventHandler<BwoinkTextMessage>? OnBwoinkTextMessageRecieved;
private (TimeSpan Timestamp, bool Typing) _lastTypingUpdateSent;
Expand All @@ -21,6 +26,10 @@ protected override void OnBwoinkTextMessage(BwoinkTextMessage message, EntitySes

public void Send(NetUserId channelId, string text, bool playSound)
{
var info = _adminSystem.PlayerInfos.GetValueOrDefault(channelId)?.Connected ?? true;
_audio.PlayGlobal(info ? AHelpUIController.AHelpSendSound : AHelpUIController.AHelpErrorSound,
Filter.Local(), false);

// Reuse the channel ID as the 'true sender'.
// Server will ignore this and if someone makes it not ignore this (which is bad, allows impersonation!!!), that will help.
RaiseNetworkEvent(new BwoinkTextMessage(channelId, channelId, text, playSound: playSound));
Expand All @@ -31,9 +40,7 @@ public void SendInputTextUpdated(NetUserId channel, bool typing)
{
if (_lastTypingUpdateSent.Typing == typing &&
_lastTypingUpdateSent.Timestamp + TimeSpan.FromSeconds(1) > _timing.RealTime)
{
return;
}

_lastTypingUpdateSent = (_timing.RealTime, typing);
RaiseNetworkEvent(new BwoinkClientTypingUpdated(channel, typing));
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Administration/UI/AdminUIHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static bool TryConfirm(Button button, Dictionary<Button, ConfirmationData
button.Text = data.OriginalText;
}, data.Cancellation.Token);

button.ModulateSelfOverride = StyleNano.ButtonColorCautionDefault;
button.ModulateSelfOverride = StyleNano.ButtonColorDangerDefault;
button.Text = Loc.GetString("admin-player-actions-confirm");
return false;
}
Expand Down
53 changes: 42 additions & 11 deletions Content.Client/Announcements/Systems/AnnouncerSystem.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Linq;
using Content.Client.Audio;
using Content.Shared.Announcements.Events;
using Content.Shared.Announcements.Systems;
Expand All @@ -18,8 +19,8 @@ public sealed class AnnouncerSystem : SharedAnnouncerSystem
[Dependency] private readonly IResourceCache _cache = default!;
[Dependency] private readonly IAudioManager _audioManager = default!;

private IAudioSource? AnnouncerSource { get; set; }
private float AnnouncerVolume { get; set; }
public List<IAudioSource> AnnouncerSources { get; } = new();
public float AnnouncerVolume { get; private set; }


public override void Initialize()
Expand All @@ -28,26 +29,42 @@ public override void Initialize()

AnnouncerVolume = _config.GetCVar(CCVars.AnnouncerVolume) * 100f / ContentAudioSystem.AnnouncerMultiplier;

SubscribeNetworkEvent<AnnouncementSendEvent>(OnAnnouncementReceived);
_config.OnValueChanged(CCVars.AnnouncerVolume, OnAnnouncerVolumeChanged);
_config.OnValueChanged(CCVars.AnnouncerDisableMultipleSounds, OnAnnouncerDisableMultipleSounds);

SubscribeNetworkEvent<AnnouncementSendEvent>(OnAnnouncementReceived);
}

public override void Shutdown()
{
base.Shutdown();

_config.UnsubValueChanged(CCVars.AnnouncerVolume, OnAnnouncerVolumeChanged);
_config.UnsubValueChanged(CCVars.AnnouncerDisableMultipleSounds, OnAnnouncerDisableMultipleSounds);
}


private void OnAnnouncerVolumeChanged(float value)
{
AnnouncerVolume = value;

if (AnnouncerSource != null)
AnnouncerSource.Gain = AnnouncerVolume;
foreach (var source in AnnouncerSources)
source.Gain = AnnouncerVolume;
}

private void OnAnnouncerDisableMultipleSounds(bool value)
{
if (!value)
return;

foreach (var audioSource in AnnouncerSources.ToList())
{
audioSource.Dispose();
AnnouncerSources.Remove(audioSource);
}
}


private void OnAnnouncementReceived(AnnouncementSendEvent ev)
{
if (!ev.Recipients.Contains(_player.LocalSession!.UserId)
Expand All @@ -56,14 +73,28 @@ private void OnAnnouncementReceived(AnnouncementSendEvent ev)
return;

var source = _audioManager.CreateAudioSource(resource);
if (source != null)
if (source == null)
return;

source.Gain = AnnouncerVolume * SharedAudioSystem.VolumeToGain(ev.AudioParams.Volume);
source.Global = true;

if (_config.GetCVar(CCVars.AnnouncerDisableMultipleSounds))
{
foreach (var audioSource in AnnouncerSources.ToList())
{
audioSource.Dispose();
AnnouncerSources.Remove(audioSource);
}
}

foreach (var audioSource in AnnouncerSources.ToList().Where(audioSource => !audioSource.Playing))
{
source.Gain = AnnouncerVolume * SharedAudioSystem.VolumeToGain(ev.AudioParams.Volume);
source.Global = true;
audioSource.Dispose();
AnnouncerSources.Remove(audioSource);
}

AnnouncerSource?.Dispose();
AnnouncerSource = source;
AnnouncerSource?.StartPlaying();
AnnouncerSources.Add(source);
source.StartPlaying();
}
}
Loading
Loading