Skip to content

Commit

Permalink
Попытки починить фалбек
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Nov 29, 2024
1 parent 2359434 commit 7eef8db
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 26 deletions.
13 changes: 0 additions & 13 deletions Content.Server/GameTicking/Commands/SetGamePresetCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
return;
}

// Sunrise-Start
if (preset.Hide)
{
shell.WriteError(Loc.GetString("set-game-preset-preset-error", ("preset", args[0])));
return;
}
// Sunrise-End

ticker.SetGamePreset(preset);
shell.WriteLine(Loc.GetString("set-game-preset-preset-set", ("preset", preset.ID)));
}
Expand All @@ -54,11 +46,6 @@ public CompletionResult GetCompletion(IConsoleShell shell, string[] args)
var options = new List<string>();
foreach (var preset in gamePresets)
{
// Sunrise-Start
if (preset.Hide)
continue;
// Sunrise-End

options.Add(preset.ID);
options.AddRange(preset.Alias);
}
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/GameRules/midround.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
parent: BaseGameRule
id: Changeling
components:
- type: GameRule
minPlayers: 5
- type: ChangelingRule
- type: AntagSelection
agentName: changeling-roundend-name
Expand All @@ -50,6 +52,8 @@
parent: BaseGameRule
id: Vampire
components:
- type: GameRule
minPlayers: 5
- type: VampireRule
- type: AntagSelection
agentName: vampire-roundend-name
Expand Down
18 changes: 15 additions & 3 deletions Resources/Prototypes/GameRules/roundstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,24 @@

- type: entity
parent: BaseGameRule
id: SubGamemodesRule
id: LiteSubGamemodesRule
components:
- type: SubGamemodes
rules:
- id: Thief
prob: 1.0 # Воры будут всегда


- type: entity
parent: BaseGameRule
id: MiddleSubGamemodesRule
components:
- type: SubGamemodes
rules:
- id: Changeling
prob: 0.20 # Слишком любители поубивать
prob: 0.25
- id: Vampire
prob: 0.30 # Не самые рдмные
prob: 0.25


- type: entity
Expand Down Expand Up @@ -102,6 +110,8 @@
parent: BaseNukeopsRule
id: Nukeops
components:
- type: GameRule
minPlayers: 20 # Sunrise-Edit
- type: LoadMapRule
mapPath: /Maps/Nonstations/nukieplanet.yml
- type: AntagSelection
Expand Down Expand Up @@ -327,6 +337,8 @@
id: RampingStationEventScheduler
parent: BaseGameRule
components:
- type: GameRule
minPlayers: 50 # Слишком тяжело для меньшего количества игроков.
- type: RampingStationEventScheduler
scheduledGameRules: !type:NestedSelector
tableId: BasicGameRulesTable
Expand Down
10 changes: 4 additions & 6 deletions Resources/Prototypes/_Sunrise/secret_weights.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
- type: weightedRandom
id: SunriseSecret
weights:
Traitor: 0.40
Traitor: 0.50
Nukeops: 0.15
Vampire: 0.15
Extra: 0.15
Extra: 0.20
Greenshift: 0.10
Revolutionary: 0.05
Survival: 0.05
Expand All @@ -15,8 +14,7 @@
weights:
Extra: 0.55
Greenshift: 0.20
Traitor: 0.15
Vampire: 0.07
Nukeops: 0.01
Traitor: 0.20
Nukeops: 0.03
Revolutionary: 0.01
Zombie: 0.01
10 changes: 6 additions & 4 deletions Resources/Prototypes/game_presets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
showInVote: true # Sunrise-Edit
hide: true # Sunrise-Edit
description: survival-description
minPlayers: 50 # Sunrise-Edit
rules:
- MeteorSwarmScheduler
- RampingStationEventScheduler
Expand Down Expand Up @@ -162,7 +163,8 @@
minPlayers: 5 # Sunrise-Edit: 5 players for TRAITORS
rules:
- Traitor
- SubGamemodesRule
- LiteSubGamemodesRule
- MiddleSubGamemodesRule
- BasicStationEventScheduler
- MeteorSwarmScheduler
- SpaceTrafficControlEventScheduler
Expand Down Expand Up @@ -192,7 +194,7 @@
minPlayers: 20 # Sunrise-Edit: 20 players for NUKEOPS
rules:
- Nukeops
- SubGamemodesRule
- LiteSubGamemodesRule # Только лайтовые под-антаги, чтобы не было кооперации станции с генокрадами против ЯО.
- BasicStationEventScheduler
- MeteorSwarmScheduler
- SpaceTrafficControlEventScheduler
Expand All @@ -211,7 +213,7 @@
minPlayers: 15 # Sunrise-Edit: 15 players for REVOLUTIONARY
rules:
- Revolutionary
- SubGamemodesRule
- LiteSubGamemodesRule # Только лайтовые под-антаги.
- BasicStationEventScheduler
- MeteorSwarmScheduler
- SpaceTrafficControlEventScheduler
Expand Down Expand Up @@ -268,7 +270,7 @@
minPlayers: 20 # Sunrise-Edit: 20 players for VAMPIRES
rules:
- Vampire
- SubGamemodesRule
- LiteSubGamemodesRule # Только лайтовые под-антаги.
- BasicStationEventScheduler
- MeteorSwarmScheduler
- BasicRoundstartVariation

0 comments on commit 7eef8db

Please sign in to comment.