Skip to content

Commit

Permalink
Patch Upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Roudenn committed Nov 22, 2024
1 parent 0fb1e12 commit ec42cf2
Show file tree
Hide file tree
Showing 15 changed files with 106 additions and 40 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Administration/Managers/IBanManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public interface IBanManager
/// <param name="reason">Reason for the ban</param>
/// <param name="minutes">Number of minutes to ban for. 0 and null mean permanent</param>
/// <param name="timeOfBan">Time when the ban was applied, used for grouping role bans</param>
public void CreateAntagban(NetUserId? target, string? targetUsername, NetUserId? banningAdmin, (IPAddress, int)? addressRange, ImmutableArray<byte>? hwid, string role, uint? minutes, NoteSeverity severity, string reason, DateTimeOffset timeOfBan);
public void CreateAntagban(NetUserId? target, string? targetUsername, NetUserId? banningAdmin, (IPAddress, int)? addressRange, ImmutableTypedHwid? hwid, string role, uint? minutes, NoteSeverity severity, string reason, DateTimeOffset timeOfBan);

/// <summary>
/// Pardons a role ban for the specified target, username or GUID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public async void CreateAntagban(NetUserId? target,
string? targetUsername,
NetUserId? banningAdmin,
(IPAddress, int)? addressRange,
ImmutableArray<byte>? hwid,
ImmutableTypedHwid? hwid,
string role,
uint? minutes,
NoteSeverity severity,
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Backmen/Economy/EconomySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using Content.Shared.CartridgeLoader;
using Content.Shared.Chat;
using Content.Shared.Database;
using Content.Shared.GameTicking;
using Content.Shared.Inventory;
using Content.Shared.Objectives.Components;
using Content.Shared.PDA;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Content.Shared.Backmen.Abilities.Psionics;
using Content.Shared.Backmen.CCVar;
using Content.Shared.Backmen.Flesh;
using Content.Shared.GameTicking;
using Content.Shared.GameTicking.Components;
using Content.Shared.Humanoid;
using Content.Shared.Mind;
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Backmen/Loadout/LoadoutSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Content.Server.Hands.Systems;
using Content.Server.Storage.EntitySystems;
using Content.Shared.Clothing.Components;
using Content.Shared.GameTicking;
using Content.Shared.Inventory;
using Robust.Shared.Prototypes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
using Content.Shared.Backmen.Reinforcement;
using Content.Shared.Backmen.Reinforcement.Components;
using Content.Shared.Database;
using Content.Shared.GameTicking;
using Content.Shared.Humanoid;
using Content.Shared.Mobs;
using Content.Shared.Mobs.Components;
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Backmen/RoleWhitelist/WhitelistSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Content.Shared.Backmen;
using Content.Shared.Backmen.WL;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.GameTicking;
using Content.Shared.Humanoid.Prototypes;
using Content.Shared.Species.Components;
using JetBrains.Annotations;
Expand Down
8 changes: 5 additions & 3 deletions Content.Server/Backmen/Shipwrecked/ShipwreckedRuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
using Content.Shared.Dataset;
using Content.Shared.Doors.Components;
using Content.Shared.FixedPoint;
using Content.Shared.GameTicking;
using Content.Shared.GameTicking.Components;
using Content.Shared.Ghost;
using Content.Shared.Gravity;
Expand Down Expand Up @@ -147,6 +148,7 @@ public sealed class ShipwreckedRuleSystem : GameRuleSystem<ShipwreckedRuleCompon
[Dependency] private readonly MetaDataSystem _metadata = default!;
[Dependency] private readonly SharedPinpointerSystem _pinpointerSystem = default!;
[Dependency] private readonly TagSystem _tagSystem = default!;
[Dependency] private readonly SharedSalvageSystem _salvageSystem = default!;

public override void Initialize()
{
Expand Down Expand Up @@ -342,8 +344,8 @@ private void OnLoadingMaps(LoadingMapsEvent ev)
}
}
*/
[ValidatePrototypeId<DatasetPrototype>]
private const string PlanetNames = "names_borer";
[ValidatePrototypeId<LocalizedDatasetPrototype>]
private const string PlanetNames = "NamesBorer";

private const int MaxPreloadOffset = 200;

Expand Down Expand Up @@ -427,7 +429,7 @@ private void SpawnPlanet(EntityUid uid, ShipwreckedRuleComponent component)
}

// planetName
var planetName = SharedSalvageSystem.GetFTLName(_prototypeManager.Index<DatasetPrototype>(PlanetNames), seed);
var planetName = _salvageSystem.GetFTLName(_prototypeManager.Index<LocalizedDatasetPrototype>(PlanetNames), seed);
_metadata.SetEntityName(planetMapUid, planetName);

// Позиция карта (точка начала)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ private void OnPersonAssigned(EntityUid uid, PickRandomPersonComponent comp, ref
}

// start-backmen: centcom
private void FilterCentCom(List<EntityUid> minds)
private void FilterCentCom(HashSet<Entity<MindComponent>> minds)
{
var centcom = _prototype.Index(_ccDep);
foreach (var mindId in minds.ToArray())
{
if (!_roleSystem.MindHasRole<JobRoleComponent>(mindId, out var job) || job.Value.Comp1.JobPrototype == null)
if (!_roleSystem.MindHasRole<JobRoleComponent>(mindId.Owner, out var job) || job.Value.Comp1.JobPrototype == null)
{
continue;
}
Expand Down
8 changes: 7 additions & 1 deletion Resources/Prototypes/Catalog/Fills/Crates/armory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,14 @@
amount: 2
- id: ClothingHeadHelmetRiot
amount: 2
- id: WeaponShotgunEnforcerRubber
# start-backmen: rebalance
- id: WeaponLauncherM81
amount: 2
- id: BoxGrenadeTearGas
amount: 2
- id: BoxGrenadeNonLetal
amount: 2
# end-backmen: rebalance
- id: BoxBeanbag
amount: 2
- id: RiotShield
Expand Down
22 changes: 0 additions & 22 deletions Resources/Prototypes/Catalog/Fills/Crates/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,6 @@
# - Pepperspray
# - GrenadeTeargas

- type: entity
id: CrateSecurityRiot
parent: CrateSecgear
name: swat crate
description: Contains two sets of riot armor, helmets, shields, and enforcers loaded with beanbags. Extra ammo is included. Requires Armory access to open.
components:
- type: StorageFill
contents:
- id: ClothingOuterArmorRiot
amount: 2
- id: ClothingHeadHelmetRiot
amount: 2
- id: WeaponLauncherM81 #Backmen Rebalance Start
amount: 2
- id: BoxGrenadeTearGas
amount: 2
- id: BoxGrenadeNonLetal
amount: 2 #Backmen Rebalance End
- id: RiotShield
amount: 2
# - SecGasmask

- type: entity
id: CrateSecuritySupplies
parent: CrateSecgear
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
- id: PresentRandomCash
prob: 0.20
orGroup: present
- id: PresentRandomAsh
prob: 0.05
orGroup: present
receivedPopup: christmas-tree-got-gift
deniedPopup: christmas-tree-no-gift
requiredHoliday: FestiveSeason
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,91 @@
tags:
- InnateDontDelete

# Borgs
- type: entity
save: false
abstract: true
id: PlayerSiliconBase #for player controlled silicons
# parent:
# - MobFlammable
# - BaseMobSpecies
components:
- type: Reactive
groups:
Acidic: [Touch]
- type: Input
context: "human"
- type: DamageOnHighSpeedImpact
damage:
types:
Blunt: 5
soundHit:
collection: MetalThud
- type: Clickable
- type: Damageable
damageContainer: Inorganic
- type: Bloodstream
bloodReagent: Oil
bloodlossDamage:
types:
Bloodloss:
1
bloodlossHealDamage:
types:
Bloodloss:
-1
- type: InteractionOutline
- type: Fixtures
fixtures:
fix1:
shape:
# Circles, cuz rotation of rectangles looks very bad
!type:PhysShapeCircle
radius: 0.35
density: 50
mask:
- MobMask
layer:
- MobLayer
- type: MovementSpeedModifier
baseWalkSpeed : 4
baseSprintSpeed : 3
- type: Sprite
noRot: true
drawdepth: Mobs
- type: Physics
bodyType: KinematicController
- type: Hands
showInHands: false
- type: Body
prototype: Drone
- type: IntrinsicRadioReceiver
- type: IntrinsicRadioTransmitter
channels:
- Binary
- type: ActiveRadio
channels:
- Binary
- Common
- type: DoAfter
- type: ComplexInteraction
- type: Examiner
- type: Puller
- type: Pullable
- type: StandingState
- type: Alerts
- type: ProtectedFromStepTriggers
slots: WITHOUT_POCKET
- type: LanguageSpeaker
currentLanguage: TauCetiBasic
- type: LanguageKnowledge #backmen: languages
speaks:
- Binary
- TauCetiBasic
understands:
- Binary
- TauCetiBasic

- type: entity
name: Blue Space Drone
id: BackmenDrone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
- type: RandomMetadata
nameSegments: [clown_basefun]
- type: Clumsy
clumsyDamage:
types:
Blunt: 5
Piercing: 4
groups:
Burn: 3
- type: TriggerOnMobstateChange
mobState:
- Dead
Expand Down
1 change: 0 additions & 1 deletion Resources/Prototypes/_Backmen/Personal/chara.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- type: Hypospray
solutionName: pen
transferAmount: 25
clumsyFailChance: 0
- type: StaticPrice
price: 500
- type: Tag
Expand Down

0 comments on commit ec42cf2

Please sign in to comment.