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

Floofstation Release V3 #355

Merged
merged 55 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b612521
ntnf scarab
JasmineRickards Nov 8, 2024
3b6f3e8
Merge pull request #1 from JasmineRickards/master
JasmineRickards Nov 8, 2024
1f0ab9d
Update ntnfscarab.yml
JasmineRickards Nov 9, 2024
3afc9f5
Merge pull request #2 from JasmineRickards/master
JasmineRickards Nov 9, 2024
7c8ce75
Update ntnfscarab.yml
JasmineRickards Nov 9, 2024
87cbcf0
Merge pull request #3 from JasmineRickards/master
JasmineRickards Nov 9, 2024
4bbb3e0
Update ntnfscarab.yml
JasmineRickards Nov 9, 2024
c1bf128
Merge pull request #4 from JasmineRickards/master
JasmineRickards Nov 9, 2024
4015bb1
Update CODEOWNERS
FoxxoTrystan Nov 10, 2024
e17c10a
Update changelog.yml
FoxxoTrystan Nov 10, 2024
4405583
Changed Dark Oasis Recipe
SleepyScarecrow Nov 10, 2024
2c53384
Merge pull request #341 from SleepyScarecrow/patch-1
Fansana Nov 11, 2024
85d7ece
Automatic Changelog Update (#341)
Floof-Station-Bot Nov 11, 2024
6c86f08
update changelog
Fansana Nov 11, 2024
39ae797
Merge pull request #339 from JasmineRickards/ert
Fansana Nov 11, 2024
0eb4021
Initial commit. changed some stuff about the bionics
Memeji Nov 11, 2024
818c643
Cheaper arm
Memeji Nov 11, 2024
9745ad3
Initial commit
Memeji Nov 11, 2024
5bee86f
no more munching on uranium
Fansana Nov 13, 2024
624c05c
fix block game
Fansana Nov 13, 2024
891b153
Update BlockGame.cs
Fansana Nov 13, 2024
7b9baf3
Update BlockGame.cs
Fansana Nov 13, 2024
2512428
Update BlockGame.cs
Fansana Nov 13, 2024
2669a89
Update BlockGameArcadeSystem.cs
Fansana Nov 13, 2024
e504867
Merge pull request #348 from Fansana/fix-block-game
Fansana Nov 13, 2024
9e5e7c1
Automatic Changelog Update (#348)
Floof-Station-Bot Nov 13, 2024
c59ca5d
Update and rename Adolescent_dragon.yml to Drake.yml
fenndragon Nov 13, 2024
5b1f886
reduce the votable gamemodes
Fansana Nov 13, 2024
6694ad8
Auto voting system for first-time player join as well as return to lo…
sleepyyapril Nov 12, 2024
eb800c6
CVars
sleepyyapril Nov 12, 2024
3a5a27b
Update physical.yml
Memeji Nov 13, 2024
2dd15f0
Update DragonSystem.cs
fenndragon Nov 13, 2024
e889d49
remove unused cvars
sleepyyapril Nov 13, 2024
e01bf4a
Update ghost-role-component.ftl
fenndragon Nov 13, 2024
3cd7160
cvar enabled by default
Fansana Nov 13, 2024
80a9212
Update cargo_fun.yml
fenndragon Nov 13, 2024
5ee3319
fix power flickers
Fansana Nov 13, 2024
d72c670
Merge pull request #353 from fenndragon/xenos
Fansana Nov 14, 2024
e181535
Automatic Changelog Update (#353)
Floof-Station-Bot Nov 14, 2024
1275c3b
Merge pull request #343 from Memeji/Nikko-Bionic-Arm
Fansana Nov 14, 2024
6decd70
Automatic Changelog Update (#343)
Floof-Station-Bot Nov 14, 2024
e4df2a7
Merge pull request #350 from Fansana/reduce-player-votes
Fansana Nov 14, 2024
20d89fd
Automatic Changelog Update (#350)
Floof-Station-Bot Nov 14, 2024
2ada8a3
Merge pull request #352 from fenndragon/Bigger-Dragon
FoxxoTrystan Nov 14, 2024
c062bae
Automatic Changelog Update (#352)
Floof-Station-Bot Nov 14, 2024
e7c1b0f
Merge pull request #354 from Fansana/fix-power-flicker
FoxxoTrystan Nov 14, 2024
94abc48
Automatic Changelog Update (#354)
Floof-Station-Bot Nov 14, 2024
ea75be0
Merge pull request #349 from fenndragon/dragon
FoxxoTrystan Nov 14, 2024
bd75176
Merge pull request #347 from Fansana/no-more-munching-on-urnaium
FoxxoTrystan Nov 14, 2024
a43841b
Merge pull request #344 from Memeji/Nikko-Herbals
FoxxoTrystan Nov 14, 2024
0e8e0c1
Automatic Changelog Update (#349)
Floof-Station-Bot Nov 14, 2024
ec8db19
Automatic Changelog Update (#344)
Floof-Station-Bot Nov 14, 2024
17dda19
Merge pull request #351 from Fansana/autovote-system
Fansana Nov 14, 2024
e183e33
Automatic Changelog Update (#351)
Floof-Station-Bot Nov 14, 2024
2e39a10
Merge branch 'stable' into master
Fansana Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ concurrency: commit_action
on:
pull_request_target:
types: [closed]
branches:
- stable

env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Arcade/BlockGame/BlockGame.Ui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private void InputTick(float frameTime)
/// <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>
Expand All @@ -167,7 +167,7 @@ private void SendMessage(BoundUserInterfaceMessage message)
/// <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>
Expand Down
57 changes: 57 additions & 0 deletions Content.Server/AutoVote/AutoVoteSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using Robust.Shared.Configuration;
using Content.Server.Voting.Managers;
using Content.Shared.GameTicking;
using Content.Shared.Voting;
using Content.Shared.CCVar;
using Robust.Server.Player;
using Content.Server.GameTicking;

namespace Content.Server.AutoVote;

public sealed class AutoVoteSystem : EntitySystem
{
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] public readonly IVoteManager _voteManager = default!;
[Dependency] public readonly IPlayerManager _playerManager = default!;

public bool _shouldVoteNextJoin = false;

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

SubscribeLocalEvent<RoundRestartCleanupEvent>(OnReturnedToLobby);
SubscribeLocalEvent<PlayerJoinedLobbyEvent>(OnPlayerJoinedLobby);
}

public void OnReturnedToLobby(RoundRestartCleanupEvent ev)
{
CallAutovote();
}

public void OnPlayerJoinedLobby(PlayerJoinedLobbyEvent ev)
{
if (_shouldVoteNextJoin)
{
CallAutovote();
_shouldVoteNextJoin = false;
}
}

private void CallAutovote()
{
if (!_cfg.GetCVar(CCVars.AutoVoteEnabled))
return;

if (_playerManager.PlayerCount == 0)
{
_shouldVoteNextJoin = true;
return;
}

if (_cfg.GetCVar(CCVars.MapAutoVoteEnabled))
_voteManager.CreateStandardVote(null, StandardVoteType.Preset);
if (_cfg.GetCVar(CCVars.PresetAutoVoteEnabled))
_voteManager.CreateStandardVote(null, StandardVoteType.Map);
}
}
7 changes: 1 addition & 6 deletions Content.Server/Dragon/DragonSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@ public override void Update(float frameTime)

comp.RiftAccumulator += frameTime;

// Delete it, naughty dragon!
if (comp.RiftAccumulator >= comp.RiftMaxAccumulator)
{
Roar(uid, comp);
QueueDel(uid);
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Power/Pow3r/BatteryRampPegSolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void Tick(float frameTime, PowerState state, IParallelManager parallel)
// suppliers + discharger) Then decide based on total layer size whether its worth parallelizing that
// layer?
_networkJob.Networks = group;
parallel.ProcessNow(_networkJob, group.Count);
parallel.ProcessSerialNow(_networkJob, group.Count);
}

ClearBatteries(state);
Expand Down
26 changes: 24 additions & 2 deletions Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2062,13 +2062,13 @@ public static readonly CVarDef<string>
*/

/// <summary>
/// Time that players have to wait before rules can be accepted.
/// Time that players have to wait before rules can be accepted.
/// </summary>
public static readonly CVarDef<float> RulesWaitTime =
CVarDef.Create("rules.time", 60f, CVar.SERVER | CVar.REPLICATED);

/// <summary>
/// Don't show rules to localhost/loopback interface.
/// Don't show rules to localhost/loopback interface.
/// </summary>
public static readonly CVarDef<bool> RulesExemptLocal =
CVarDef.Create("rules.exempt_local", true, CVar.SERVERONLY);
Expand Down Expand Up @@ -2640,5 +2640,27 @@ public static readonly CVarDef<float>
CVarDef.Create("ghost.allow_same_character", false, CVar.SERVERONLY);

#endregion

/*
* AUTOVOTE SYSTEM
*/

/// <summary>
/// Enables the automatic voting system.
/// </summary>
public static readonly CVarDef<bool> AutoVoteEnabled =
CVarDef.Create("vote.autovote_enabled", true, CVar.SERVERONLY); // Floof enabled by default

/// <summary>
/// Automatically make map votes on return to lobby? Requires auto voting to be enabled.
/// </summary>
public static readonly CVarDef<bool> MapAutoVoteEnabled =
CVarDef.Create("vote.map_autovote_enabled", true, CVar.SERVERONLY);

/// <summary>
/// Automatically make preset votes on return to lobby? Requires auto voting to be enabled.
/// </summary>
public static readonly CVarDef<bool> PresetAutoVoteEnabled =
CVarDef.Create("vote.preset_autovote_enabled", true, CVar.SERVERONLY);
}
}
75 changes: 75 additions & 0 deletions Resources/Changelog/Floof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1408,3 +1408,78 @@ Entries:
id: 188
time: '2024-11-05T00:33:06.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/328
- author: SleepyScarecrow
changes:
- type: Tweak
message: Tweaked Dark Oasis Recipe
id: 181
time: '2024-11-11T06:50:56.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/341
- author: Fansana
changes:
- type: Fix
message: Fixed block game UI!
id: 189
time: '2024-11-13T22:20:32.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/348
- author: fenndragon
changes:
- type: Tweak
message: Tweaked Price
id: 190
time: '2024-11-14T09:55:10.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/353
- author: Memeji
changes:
- type: Fix
message: Gladiators can no longer have bionics.
- type: Tweak
message: Bionic arm cannot opened powered doors. Cost reduced to 6 instead of 8.
id: 191
time: '2024-11-14T09:55:48.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/343
- author: Fansana
changes:
- type: Tweak
message: Tweaked game mode votes
id: 192
time: '2024-11-14T09:57:52.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/350
- author: fenndragon
changes:
- type: Remove
message: Removed timer from dragon gameplay
id: 193
time: '2024-11-14T18:02:17.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/352
- author: Fansana
changes:
- type: Fix
message: Fixed the power flickers!
id: 194
time: '2024-11-14T18:03:44.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/354
- author: fenndragon
changes:
- type: Add
message: Added Leash anchor to Space drakes
- type: Tweak
message: 'Tweaked the name of Space drakes '
id: 195
time: '2024-11-14T18:05:25.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/349
- author: Memeji
changes:
- type: Tweak
message: Removed nicotine from Interdynes and replaced it with iron and dylovene.
id: 196
time: '2024-11-14T18:06:38.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/344
- author: Fansana
changes:
- type: Add
message: Added auto vote system
id: 197
time: '2024-11-14T23:20:24.0000000+00:00'
url: https://github.com/Fansana/floofstation1/pull/351

Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ ghost-role-information-ifrit-name = Ifrit
ghost-role-information-ifrit-description = Listen to your owner. Don't tank damage. Punch people hard.

ghost-role-information-space-dragon-name = Space dragon
ghost-role-information-space-dragon-description = Call in 3 carp rifts and take over this quadrant! You have only 5 minutes in between each rift before you will disappear.
ghost-role-information-space-dragon-description = create 3 carp rifts and protect your nest!
ghost-role-information-space-dragon-dungeon-description = Defend the expedition dungeon with your fishy comrades!

ghost-role-information-cluwne-name = Cluwne
Expand Down
Loading
Loading