Skip to content

Commit

Permalink
Improvements to random encounters
Browse files Browse the repository at this point in the history
- Random encounters will no longer spawn as often
- Localization
- More clarity in scan results
  • Loading branch information
not_alphanine committed Nov 13, 2024
1 parent 9f845bf commit 13bdfdb
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
10 changes: 8 additions & 2 deletions scripting/DifficultyAdjustment/NGPlusModSettings.reds
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ public class UserSettings {
@runtimeProperty("ModSettings.description", "NewGamePlus_EnableRandomEncounters_Desc")
public let enableRandomEncounters: Bool = true;
@runtimeProperty("ModSettings.mod", "NewGamePlus_MainMenuButton")
@runtimeProperty("ModSettings.category", "NewGamePlus_RandomEncounters_Name")
@runtimeProperty("ModSettings.category.order", "2")
@runtimeProperty("ModSettings.displayName", "NewGamePlus_RandomEncountersWhileWalking_Name")
@runtimeProperty("ModSettings.description", "NewGamePlus_RandomEncountersWhileWalking_Desc")
@runtimeProperty("ModSettings.dependency", "enableRandomEncounters")
public let spawnRandomEncountersWhileWalking: Bool = true;
@runtimeProperty("ModSettings.mod", "NewGamePlus_MainMenuButton")
@runtimeProperty("ModSettings.category", "NewGamePlus_RandomEncounters_Name")
@runtimeProperty("ModSettings.category.order", "2")
Expand Down Expand Up @@ -122,8 +130,6 @@ public class DynamicSpawnSystemCustomizer extends ScriptableTweak {
dynamicSpawnSystemCount = 100;
break;
}
GameInstance.GetNewGamePlusSystem().Spew(s"Applied dynamic spawn system amt: \(dynamicSpawnSystemCount)");
TweakDBManager.SetFlat(t"DynamicSpawnSystem.setup.totalEntitiesLimit", dynamicSpawnSystemCount);
TweakDBManager.SetFlat(t"DynamicSpawnSystem.setup.numberOfDeadBodiesToTriggerImmediateDespawn", dynamicSpawnSystemCount);
Expand Down
14 changes: 8 additions & 6 deletions tweaks/NGPlus_StrongSoloBoss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ Character.NGPlus_EncounterStrongSoloBoss:
equipmentItems:
-
$type: NPCEquipmentItem
item: t"Items.Preset_MA70_Default"
item: t"Items.Preset_HMG_Default"
equipSlot: "AttachmentSlots.WeaponRight"
equipCondition:
- t"WeaponConditions.BaseRangedPrimaryWeaponEquipCondition"
unequipCondition:
- t"WeaponConditions.BaseRangedPrimaryWeaponUnequipCondition"

effectors:
- !append Character.NGPlus_TechDodgeEffector
Expand Down Expand Up @@ -86,7 +82,13 @@ Character.NGPlus_EncounterStrongSoloBoss:
$type: ConstantStatModifier
statType: BaseStats.Health
modifierType: Multiplier
value: 0.8
value: 1.2

- !append
$type: ConstantStatModifier
statType: BaseStats.Accuracy
modifierType: Multiplier
value: 9999

- !append
$type: ConstantStatModifier
Expand Down
Loading

0 comments on commit 13bdfdb

Please sign in to comment.