]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Lite Magnet Rebalancing (#31726)
authorNemanja <98561806+EmoGarbage404@users.noreply.github.com>
Mon, 2 Sep 2024 04:36:28 +0000 (00:36 -0400)
committerGitHub <noreply@github.com>
Mon, 2 Sep 2024 04:36:28 +0000 (22:36 -0600)
magnet rebalancing ish

Content.Server/Salvage/Magnet/SalvageMagnetComponent.cs
Content.Shared/Salvage/SharedSalvageSystem.Magnet.cs
Resources/Locale/en-US/salvage/salvage-magnet.ftl
Resources/Prototypes/Entities/Markers/Spawners/Random/Salvage/spawners.yml
Resources/Prototypes/Entities/Mobs/NPCs/carp.yml
Resources/Prototypes/Procedural/Magnet/asteroid_ore_gens.yml
Resources/Prototypes/Procedural/Magnet/space_debris.yml
Resources/Prototypes/Procedural/Magnet/space_debris_templates.yml

index 5dd5f1ca80392b5413d1139fb482c9b4fa3d697d..e991f7007b10bd612bed92b92b150000f3eb982a 100644 (file)
@@ -8,11 +8,11 @@ public sealed partial class SalvageMagnetComponent : Component
     /// Scales from 50% to 100%.
     /// </summary>
     [DataField]
-    public float MagnetSpawnDistance = 128f;
+    public float MagnetSpawnDistance = 64f;
 
     /// <summary>
     /// How far offset to either side will the magnet wreck spawn.
     /// </summary>
     [DataField]
-    public float LateralOffset = 32f;
+    public float LateralOffset = 16f;
 }
index a530844598d67ddce9d92525e19d517666189c98..c0417224792136485456f70c7f3197d0df85e44b 100644 (file)
@@ -14,11 +14,11 @@ public abstract partial class SharedSalvageSystem
 {
     private readonly List<SalvageMapPrototype> _salvageMaps = new();
 
-    private Dictionary<ISalvageMagnetOffering, float> _offeringWeights = new()
+    private readonly Dictionary<ISalvageMagnetOffering, float> _offeringWeights = new()
     {
-        { new AsteroidOffering(), 3.0f },
-        { new DebrisOffering(), 4.0f },
-        { new SalvageOffering(), 1.0f }
+        { new AsteroidOffering(), 4.5f },
+        { new DebrisOffering(), 3.5f },
+        { new SalvageOffering(), 2.0f },
     };
 
     private readonly List<ProtoId<DungeonConfigPrototype>> _asteroidConfigs = new()
index e160a8c0e04b27fac29196a3d10b891153b37c78..14ee6bb8de734c68476f10158419f2fc1d99f515 100644 (file)
@@ -32,7 +32,7 @@ salvage-magnet-resources-count = {$count ->
 }
 
 # Debris
-salvage-magnet-debris-ChunkDebris = Space Debris
+salvage-magnet-debris-ChunkDebris = Space debris
 
 # Asteroids
 dungeon-config-proto-BlobAsteroid = Asteroid clump
index 503fcc33802b18defecac80d49688963f3e72141..d16499aa7672e2a768cd399e284016fb3be76566 100644 (file)
   id: SalvageEquipmentSpawnerCommon
   table: !type:GroupSelector
     children:
-    # 80% chance of equipment item
+    # 90% chance of equipment item
     - !type:GroupSelector
-      weight: 80
+      weight: 90
       children:
       - !type:NestedSelector
         tableId: SalvageEquipmentCommon
-        weight: 60
+        weight: 50
       - !type:NestedSelector
         tableId: SalvageEquipmentUncommon
-        weight: 30
+        weight: 35
       - !type:NestedSelector
         tableId: SalvageEquipmentRare
-        weight: 9
+        weight: 14
       - !type:NestedSelector
         tableId: SalvageEquipmentLegendary
         weight: 1
-    # 15% chance of decent-ish treasure
+    # 5% chance of decent-ish treasure
     - !type:GroupSelector
-      weight: 15
+      weight: 5
       children:
       - !type:NestedSelector
         tableId: SalvageTreasureCommon
   id: SalvageEquipmentSpawnerValuable
   table: !type:GroupSelector
     children:
-    # 80% chance of equipment item
+    # 90% chance of equipment item
     - !type:GroupSelector
-      weight: 80
+      weight: 90
       children:
       - !type:NestedSelector
         tableId: SalvageEquipmentCommon
-        weight: 45
+        weight: 15
       - !type:NestedSelector
         tableId: SalvageEquipmentUncommon
-        weight: 35
+        weight: 40
       - !type:NestedSelector
         tableId: SalvageEquipmentRare
-        weight: 15
+        weight: 35
       - !type:NestedSelector
         tableId: SalvageEquipmentLegendary
-        weight: 5
-    # 14% chance of decent-ish treasure
+        weight: 10
+    # 5% chance of decent-ish treasure
     - !type:GroupSelector
-      weight: 14
+      weight: 5
       children:
       - !type:NestedSelector
         tableId: SalvageTreasureCommon
       - !type:NestedSelector
         tableId: SalvageTreasureRare
         weight: 10
-    # 5% chance of decent maintenance loot
+    # 4% chance of decent maintenance loot
     - !type:GroupSelector
-      weight: 5
+      weight: 4
       children:
       - !type:NestedSelector
         tableId: MaintToolsTable
   table: !type:GroupSelector
     children:
     - id: MobCarpSalvage
-      weight: 70
+      weight: 80
     - id: MobCarpSalvage
-      weight: 25
+      weight: 15
       amount: !type:RangeNumberSelector
         range: 1, 3
     - !type:AllSelector
       - id: MobSharkSalvage
       - id: MobCarpSalvage
         amount: !type:ConstantNumberSelector
-          value: 3
+          value: 2
     # - id: MobHivebot (solo hivebot spawn)
 
 - type: entity
index 4d9f408d9dadb7c3360b63d94f6df0f35b2cd1d0..233b2f903081022478eefb28a2670f6c8890bfe0 100644 (file)
     - type: MobThresholds
       thresholds:
         0: Alive
-        50: Dead
+        40: Dead
+    - type: MovementSpeedModifier
+      baseWalkSpeed: 2.5
+      baseSprintSpeed: 3.5
     - type: Stamina
       critThreshold: 100
     - type: DamageStateVisuals
@@ -65,8 +68,8 @@
         path: /Audio/Effects/bite.ogg
       damage:
         types:
-          Piercing: 5
-          Slash: 10
+          Blunt: 5
+          Slash: 7
     - type: TypingIndicator
       proto: alien
     - type: Tag
     - type: MobThresholds
       thresholds:
         0: Alive
-        180: Dead
+        150: Dead
     - type: Stamina
       critThreshold: 150
     - type: DamageStateVisuals
     - type: MeleeWeapon
       damage:
         types:
-          Slash: 12
+          Slash: 10
           Bloodloss: 5
 
 - type: entity
index f1ee05f6eee4bbc51d7fb2b82d3b26a615da1288..661350f6de60d19518f610172f2e1287846255a2 100644 (file)
@@ -7,8 +7,8 @@
     OreSalt: 0.25
     OreGold: 0.25
     OreSilver: 0.25
-    OrePlasma: 0.15
-    OreUranium: 0.15
+    OrePlasma: 0.20
+    OreUranium: 0.20
     OreArtifactFragment: 0.10
     OreBananium: 0.10
 
   replacement: AsteroidRock
   entity: AsteroidRockGold
   count: 4
-  minGroupSize: 4
-  maxGroupSize: 6
+  minGroupSize: 5
+  maxGroupSize: 7
 
 - type: oreDunGen
   id: OreSilver
   replacement: AsteroidRock
   entity: AsteroidRockSilver
   count: 4
-  minGroupSize: 4
-  maxGroupSize: 6
+  minGroupSize: 5
+  maxGroupSize: 7
 
 - type: oreDunGen
   id: OrePlasma
   replacement: AsteroidRock
   entity: AsteroidRockPlasma
   count: 4
-  minGroupSize: 3
-  maxGroupSize: 6
+  minGroupSize: 5
+  maxGroupSize: 7
 
 - type: oreDunGen
   id: OreUranium
   replacement: AsteroidRock
   entity: AsteroidRockUranium
   count: 4
-  minGroupSize: 3
-  maxGroupSize: 6
+  minGroupSize: 5
+  maxGroupSize: 7
 
 - type: oreDunGen
   id: OreBananium
index 26b4ae25c801a22cfbb3baea45535e4286c010d7..aab5cada9a50900810806f2ce331853d78086457 100644 (file)
@@ -5,7 +5,7 @@
     - !type:NoiseDunGen
       tileCap: 500
       capStd: 32
-      iterations: 5
+      iterations: 7
       layers:
       - tile: FloorSteel
         threshold: 0.50
index 6500f4415b12185c28128f2d2b318ba20b16f73e..5a96fcd269d161d5d27b77bf6d140ffd27d9e650 100644 (file)
       seed: 1
       frequency: 1
     entities:
+    - SalvageSpawnerScrapValuable
+    - SalvageSpawnerScrapCommon
+    - SalvageSpawnerScrapCommon
     - SalvageSpawnerScrapCommon
     - SalvageSpawnerScrapCommon75
-    - SalvageSpawnerScrapCommon75
-    - SalvageSpawnerScrapValuable
-    - SalvageSpawnerScrapValuable75
   - !type:BiomeEntityLayer
     allowedTiles:
     - FloorSteel
+    - Plating
     threshold: 0.7
     noise:
       seed: 1
       frequency: 1
     entities:
-    - SalvageSpawnerTreasureValuable
-    - SalvageSpawnerEquipmentValuable
     - SalvageSpawnerTreasure
     - SalvageSpawnerTreasure
     - SalvageSpawnerEquipment
     - SalvageSpawnerEquipment
+    - SalvageSpawnerTreasureValuable
+    - SalvageSpawnerEquipmentValuable
   - !type:BiomeEntityLayer
     allowedTiles:
     - FloorSteel
-    threshold: 0.85
+    threshold: 0.90
     noise:
       seed: 1
       frequency: 1