Skip to content

Commit

Permalink
Merge pull request #7 from Corvax-Frontier/Up090824
Browse files Browse the repository at this point in the history
Апстрём плюс фиксики
  • Loading branch information
Vonsant authored Aug 9, 2024
2 parents 7f1095f + 7fd6e32 commit 3a81dcc
Show file tree
Hide file tree
Showing 234 changed files with 15,039 additions and 18,251 deletions.
3 changes: 3 additions & 0 deletions Content.Client/_NF/Latejoin/VesselListControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ private void UpdateUi(IReadOnlyDictionary<NetEntity, Dictionary<ProtoId<JobProto
if (VesselItemList.Any(x => (NetEntity) x.Metadata! == key))
continue;

if (_gameTicker.JobsAvailable[key].Values.Count == 0)
continue; // No jobs here, continue.

var jobsAvailable = _gameTicker.JobsAvailable[key].Values.Sum(a => a ?? 0);
var item = new ItemList.Item(VesselItemList)
{
Expand Down
1 change: 1 addition & 0 deletions Content.Client/_NF/Market/UI/MarketMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public void UpdateState(MarketConsoleInterfaceState uiState)
PurchaseCart.Text = _loc.GetString("market-purchase-cart-button") +
(uiState.CartBalance + uiState.TransactionCost);
SetUiEnabled(uiState.Enabled);
PurchaseCart.Disabled = uiState.CartDataList.Count <= 0;
}

private void Populate(List<MarketData> data, List<MarketData> cartData, float marketModifier, bool enabled = true)
Expand Down
7 changes: 6 additions & 1 deletion Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,12 @@ public override void Update(float frameTime)
for (var i = 0; i < active.PortionedRecipe.Item2; i++)
{
SubtractContents(microwave, active.PortionedRecipe.Item1);
Spawn(active.PortionedRecipe.Item1.Result, coords);
// Frontier: ResultCount - support multiple results per recipe
for (var r = 0; r < active.PortionedRecipe.Item1.ResultCount; r++)
{
Spawn(active.PortionedRecipe.Item1.Result, coords);
}
// End Frontier
}
}

Expand Down
8 changes: 8 additions & 0 deletions Content.Server/Nyanotrasen/Abilities/Felinid/FelinidSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
using Robust.Shared.Prototypes;
using Content.Shared.Nutrition.EntitySystems;
using Content.Shared.Nyanotrasen.Abilities;
using Content.Shared.CombatMode.Pacification; // Frontier

namespace Content.Server.Abilities.Felinid
{
Expand All @@ -47,6 +48,8 @@ public override void Initialize()
SubscribeLocalEvent<FelinidComponent, DidUnequipHandEvent>(OnUnequipped);
SubscribeLocalEvent<HairballComponent, ThrowDoHitEvent>(OnHairballHit);
SubscribeLocalEvent<HairballComponent, GettingPickedUpAttemptEvent>(OnHairballPickupAttempt);

SubscribeLocalEvent<HairballComponent, AttemptPacifiedThrowEvent>(OnHairballAttemptPacifiedThrow); // Frontier - Block hairball abuse
}

private Queue<EntityUid> RemQueue = new();
Expand Down Expand Up @@ -190,6 +193,11 @@ private void OnHairballPickupAttempt(EntityUid uid, HairballComponent component,
args.Cancel();
}
}

private void OnHairballAttemptPacifiedThrow(Entity<HairballComponent> ent, ref AttemptPacifiedThrowEvent args) // Frontier - Block hairball abuse
{
args.Cancel("pacified-cannot-throw-hairball");
}
}

}
16 changes: 12 additions & 4 deletions Content.Server/_NF/GameRule/AdventureRuleComponent.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
using Robust.Shared.Audio;

namespace Content.Server.GameTicking.Rules.Components;
/*
* New Frontiers - This file is licensed under AGPLv3
* Copyright (c) 2024 New Frontiers
* See AGPLv3.txt for details.
*/
namespace Content.Server._NF.GameRule;

[RegisterComponent, Access(typeof(NfAdventureRuleSystem))]
public sealed partial class AdventureRuleComponent : Component
{

public List<EntityUid> NFPlayerMinds = new();
public List<EntityUid> CargoDepots = new();
public List<EntityUid> MarketStations = new();
public List<EntityUid> RequiredPois = new();
public List<EntityUid> OptionalPois = new();
public List<EntityUid> UniquePois = new();
}
Loading

0 comments on commit 3a81dcc

Please sign in to comment.