showloot setting
This commit is contained in:
@@ -87,6 +87,11 @@
|
|||||||
[NoSettingName([Apr2025])]
|
[NoSettingName([Apr2025])]
|
||||||
public DungeonItemLocations Compasses { get; set; } = DungeonItemLocations.Dungeon;
|
public DungeonItemLocations Compasses { get; set; } = DungeonItemLocations.Dungeon;
|
||||||
|
|
||||||
|
[SettingName("showloot")]
|
||||||
|
[RequiredSetting([Apr2025, Base], ShowLoot.Never)]
|
||||||
|
[NoSettingName([Apr2025, Base])]
|
||||||
|
public ShowLoot ShowLoot { get; set; } = ShowLoot.Never;
|
||||||
|
|
||||||
[NoSettingName]
|
[NoSettingName]
|
||||||
[RequiredSetting([Apr2025], ShopShuffle.Vanilla)]
|
[RequiredSetting([Apr2025], ShopShuffle.Vanilla)]
|
||||||
public ShopShuffle ShopShuffle { get; set; } = ShopShuffle.Vanilla;
|
public ShopShuffle ShopShuffle { get; set; } = ShopShuffle.Vanilla;
|
||||||
@@ -124,8 +129,12 @@
|
|||||||
[RequiredSetting([Apr2025], BookSettings.Normal)]
|
[RequiredSetting([Apr2025], BookSettings.Normal)]
|
||||||
public BookSettings Book { get; set; } = BookSettings.Normal;
|
public BookSettings Book { get; set; } = BookSettings.Normal;
|
||||||
|
|
||||||
|
[NoSettingName]
|
||||||
|
[RequiredSetting([Apr2025], MirrorSettings.Normal)]
|
||||||
|
public MirrorSettings Mirror { get; set; } = MirrorSettings.Normal;
|
||||||
|
|
||||||
[SettingName("door_shuffle")]
|
[SettingName("door_shuffle")]
|
||||||
[RequiredSetting([Apr2025, DungeonMap], DoorShuffle.Vanilla)]
|
[RequiredSetting([Apr2025], DoorShuffle.Vanilla)]
|
||||||
[NoSettingName([Apr2025])]
|
[NoSettingName([Apr2025])]
|
||||||
public DoorShuffle DoorShuffle { get; set; } = DoorShuffle.Vanilla;
|
public DoorShuffle DoorShuffle { get; set; } = DoorShuffle.Vanilla;
|
||||||
|
|
||||||
@@ -311,12 +320,24 @@
|
|||||||
Wild,
|
Wild,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum ShowLoot {
|
||||||
|
Never,
|
||||||
|
Compass,
|
||||||
|
Always,
|
||||||
|
}
|
||||||
|
|
||||||
public enum BootsSettings {
|
public enum BootsSettings {
|
||||||
Normal,
|
Normal,
|
||||||
[AdditionalSetting("--pseudoboots")] Pseudoboots,
|
[AdditionalSetting("--pseudoboots")] Pseudoboots,
|
||||||
[AddStartingItems("Pegasus_Boots")] Starting,
|
[AddStartingItems("Pegasus_Boots")] Starting,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum MirrorSettings {
|
||||||
|
Normal,
|
||||||
|
[AdditionalSetting("--mirrorscroll")] Scroll,
|
||||||
|
[AddStartingItems("Magic_Mirror")] Starting,
|
||||||
|
}
|
||||||
|
|
||||||
public enum FluteSettings {
|
public enum FluteSettings {
|
||||||
Normal,
|
Normal,
|
||||||
[AdditionalSetting("--flute_mode=pseudo")] Pseudoflute,
|
[AdditionalSetting("--flute_mode=pseudo")] Pseudoflute,
|
||||||
|
|||||||
@@ -141,6 +141,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async Task RandomizeMultiworld(string id, IList<SeedSettings> settings) {
|
public async Task RandomizeMultiworld(string id, IList<SeedSettings> settings) {
|
||||||
|
var randomizerName = this.SettingsProcessor.GetRandomizerName(settings[0].Randomizer);
|
||||||
Logger.LogDebug("Recieved request for id {id} to randomize multiworld settings {@settings}", id, settings);
|
Logger.LogDebug("Recieved request for id {id} to randomize multiworld settings {@settings}", id, settings);
|
||||||
|
|
||||||
var names = settings.Select(s => s.PlayerName.Replace(' ', '_')).ToList();
|
var names = settings.Select(s => s.PlayerName.Replace(' ', '_')).ToList();
|
||||||
@@ -149,7 +150,7 @@
|
|||||||
.Append(string.Format("--names={0}", string.Join(",", names)))
|
.Append(string.Format("--names={0}", string.Join(",", names)))
|
||||||
.Append(string.Format("--multi={0}", settings.Count));
|
.Append(string.Format("--multi={0}", settings.Count));
|
||||||
|
|
||||||
await StartProcess(Name, id, args, async exitcode => {
|
await StartProcess(randomizerName, id, args, async exitcode => {
|
||||||
if (exitcode != 0) {
|
if (exitcode != 0) {
|
||||||
await GenerationFailed(id, exitcode);
|
await GenerationFailed(id, exitcode);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Submodule DungeonMapRandomizer updated: 507f4170c8...8df39da2bd
Reference in New Issue
Block a user