more settings & fixes.... is that literally the same message as the last one lmao

This commit is contained in:
Gurge44 committed 2025-06-05 20:59:04 +02:00
1 parent 7c4a93defb
commit 6afe0e7f80
2 files changed
+16 -6

No files matched your search

+3 -3
View File
@@ -240,7 +240,7 @@ public static class RoomRush
if (showTutorial)
{
var readingTime = 4;
var readingTime = 2;
StringBuilder sb = new(Translator.GetString("RR_Tutorial_Basics"));
sb.AppendLine();
@@ -376,7 +376,7 @@ public static class RoomRush
: Options.DecontaminationTimeOnMiraHQ.GetInt()
: 3;
time += decontaminationTime * (polus ? 2 : 4);
time += decontaminationTime * (polus ? 3 : 4);
}
switch (map)
@@ -384,7 +384,7 @@ public static class RoomRush
case MapNames.Fungle when RoomGoal == SystemTypes.Laboratory || previous == SystemTypes.Laboratory:
time += (int)(8 / speed);
break;
case MapNames.Polus when (RoomGoal == SystemTypes.Laboratory && previous is not SystemTypes.Storage and not SystemTypes.Specimens) || (previous == SystemTypes.Laboratory && RoomGoal is not SystemTypes.Office and not SystemTypes.Storage and not SystemTypes.Electrical):
case MapNames.Polus when (RoomGoal == SystemTypes.Laboratory && previous is not SystemTypes.Storage and not SystemTypes.Specimens) || (previous == SystemTypes.Laboratory && RoomGoal is not SystemTypes.Office and not SystemTypes.Storage and not SystemTypes.Electrical and not SystemTypes.Specimens):
time -= (int)(5 * speed);
break;
}
+13 -3
View File
@@ -13,7 +13,7 @@ public class SabotageMaster : RoleBase
private const int Id = 7000;
private static List<byte> PlayerIdList = [];
public static OptionItem SkillLimit;
private static OptionItem SkillLimit;
private static OptionItem FixesDoors;
private static OptionItem FixesReactors;
private static OptionItem FixesOxygens;
@@ -26,6 +26,8 @@ public class SabotageMaster : RoleBase
private static OptionItem CanFixSabotageFromAnywhereWithPet;
private static OptionItem MaxFixedViaPet;
public static OptionItem CanVent;
private static OptionItem VentCooldown;
private static OptionItem MaxInVentTime;
private static bool DoorsProgressing;
private bool fixedSabotage;
@@ -83,6 +85,14 @@ public class SabotageMaster : RoleBase
CanVent = new BooleanOptionItem(Id + 22, "CanVent", true, TabGroup.CrewmateRoles)
.SetParent(Options.CustomRoleSpawnChances[CustomRoles.SabotageMaster]);
VentCooldown = new FloatOptionItem(Id + 23, "VentCooldown", new(0f, 60f, 0.1f), 10f, TabGroup.CrewmateRoles)
.SetParent(CanVent)
.SetValueFormat(OptionFormat.Seconds);
MaxInVentTime = new FloatOptionItem(Id + 24, "MaxInVentTime", new(0f, 60f, 0.1f), 10f, TabGroup.CrewmateRoles)
.SetParent(CanVent)
.SetValueFormat(OptionFormat.Seconds);
}
public override void Init()
@@ -108,8 +118,8 @@ public class SabotageMaster : RoleBase
public override void ApplyGameOptions(IGameOptions opt, byte playerId)
{
if (!CanVent.GetBool()) return;
AURoleOptions.EngineerCooldown = 0f;
AURoleOptions.EngineerInVentMaxTime = 0f;
AURoleOptions.EngineerCooldown = VentCooldown.GetFloat();
AURoleOptions.EngineerInVentMaxTime = MaxInVentTime.GetFloat();
}
public override string GetProgressText(byte playerId, bool comms)