Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Commit 3e7418a

Browse files
committed
v1.0.2.7 update
1 parent 22c9743 commit 3e7418a

15 files changed

Lines changed: 101 additions & 75 deletions

File tree

ExtremeSkins.Core/ExtremeSkins.Core.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,19 @@
1414
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
1515
<DebugType>none</DebugType>
1616
</PropertyGroup>
17+
18+
<ItemGroup>
19+
<Reference Include="D:\WorkSpace\Among Us BepInEx\BepInEx\core\*.dll" />
20+
<Reference Include="D:\WorkSpace\Among Us BepInEx\BepInEx\interop\*.dll" />
21+
<Reference Include="D:\WorkSpace\Among Us BepInEx\dotnet\*.dll" />
22+
</ItemGroup>
23+
24+
<Target Name="CopyCustomContent" AfterTargets="AfterBuild">
25+
<Message Text="Second occurrence" />
26+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="$(AmongUsPlugins)\" />
27+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="$(AmongUsRelease)\" />
28+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="$(AmongUsRelease)\Nebula\BepInEx\plugins\" />
29+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="D:\WorkSpace\" />
30+
</Target>
1731

1832
</Project>

Nebula/Nebula.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ public class NebulaPlugin : BasePlugin
4141
public const string AmongUsVersion = "2023.3.28";
4242
public const string PluginGuid = "cn.zsfabtest.amongus.nebular";
4343
public const string PluginName = "TheNebula-R";
44-
public const string PluginVersion = "1.0.2.6";
44+
public const string PluginVersion = "1.0.2.7";
4545
public const bool IsSnapshot = false;
4646

4747
public static string PluginVisualVersion = IsSnapshot ? "23.06.04a" : PluginVersion;
4848
public static string PluginStage = IsSnapshot ? "Snapshot" : "";
4949

50-
public const string PluginVersionForFetch = "1.0.2.6";
51-
public byte[] PluginVersionData = new byte[] { 1, 0, 2, 6 };
50+
public const string PluginVersionForFetch = "1.0.2.7";
51+
public byte[] PluginVersionData = new byte[] { 1, 0, 2, 7 };
5252

5353
public static NebulaPlugin Instance;
5454

Nebula/NebulaPlugin.csproj

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<ApplicationIcon />
77
<Win32Resource />
@@ -42,16 +42,17 @@
4242
</ItemGroup>
4343

4444
<ItemGroup>
45-
<Reference Include="...\...\Among Us\BepInEx\core\*.dll" />
46-
<Reference Include="...\...\Among Us\BepInEx\interop\*.dll" />
47-
<Reference Include="...\...\Among Us\dotnet\*.dll" />
45+
<Reference Include="D:\WorkSpace\Among Us BepInEx\BepInEx\core\*.dll" />
46+
<Reference Include="D:\WorkSpace\Among Us BepInEx\BepInEx\interop\*.dll" />
47+
<Reference Include="D:\WorkSpace\Among Us BepInEx\dotnet\*.dll" />
4848
</ItemGroup>
4949

5050
<Target Name="CopyCustomContent" AfterTargets="AfterBuild">
5151
<Message Text="Second occurrence" />
52-
<Copy SourceFiles="bin\Debug\net6.0\Nebula.dll" DestinationFolder="$(AmongUsPlugins)\" />
53-
<Copy SourceFiles="bin\Debug\net6.0\Nebula.dll" DestinationFolder="$(AmongUsRelease)\" />
54-
<Copy SourceFiles="bin\Debug\net6.0\Nebula.dll" DestinationFolder="$(AmongUsRelease)\Nebula\BepInEx\plugins\" />
52+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="$(AmongUsPlugins)\" />
53+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="$(AmongUsRelease)\" />
54+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="$(AmongUsRelease)\Nebula\BepInEx\plugins\" />
55+
<Copy SourceFiles="bin\Debug\netstandard2.1\Nebula.dll" DestinationFolder="D:\WorkSpace\" />
5556
</Target>
5657

5758
</Project>

Nebula/Objects/CustomButton.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public class CustomButton
9999

100100
public bool IsValid { get { return activeFlag; } }
101101
public bool IsShown { get { return activeFlag && !hideFlag; } }
102+
public bool timeInVent = false;
102103

103104
private static Sprite spriteKeyBindBackGround;
104105
private static Sprite spriteKeyBindOption;
@@ -357,6 +358,7 @@ public static void HudUpdate()
357358
{
358359
try
359360
{
361+
//if(buttons[i].timeInVent) continue;
360362
buttons[i].Update();
361363
}
362364
catch (NullReferenceException)
@@ -457,7 +459,7 @@ private bool MouseClicked()
457459
return Mathf.Sqrt(x * x + y * y) < 280;
458460
}
459461

460-
private void Update()
462+
public void Update()
461463
{
462464
if (actionButton.cooldownTimerText.color.a != 1f)
463465
{
@@ -467,7 +469,7 @@ private void Update()
467469

468470
if (Timer >= 0)
469471
{
470-
if (HasEffect && isEffectActive)
472+
if ((HasEffect && isEffectActive) || timeInVent)
471473
Timer -= Time.deltaTime;
472474
else if (Helpers.ProceedTimer(isImpostorKillButton))
473475
Timer -= Time.deltaTime;

Nebula/Patches/PlayerControlPatch.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,11 +754,19 @@ class PlayerCanMovePatch
754754
{
755755
public static void Postfix(PlayerControl __instance, ref bool __result)
756756
{
757+
/*
758+
if(PlayerControl.LocalPlayer.GetModData() != null && PlayerControl.LocalPlayer.GetModData().role == Roles.Roles.SerialKiller){
759+
try{
760+
Roles.ImpostorRoles.SerialKiller.suicideButton.Update();
761+
}catch(Exception e){ Debug.LogError(e.StackTrace); }
762+
}
763+
*/
764+
757765
if (__instance != PlayerControl.LocalPlayer) return;
758766
if (!__result) return;
759767

760768
__result &= !TextInputField.ValidField;
761-
__result &= HudManager.Instance.PlayerCam.Target == PlayerControl.LocalPlayer;
769+
//__result &= HudManager.Instance.PlayerCam.Target == PlayerControl.LocalPlayer;
762770
}
763771
}
764772

Nebula/Resources/Languages/SChinese.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,7 @@
14421442
"role.sanctifier.canUnsetGuesser" : "可以消除赌怪"
14431443
"role.sanctifier.canUnsetSidekick" : "可以消除跟班"
14441444
"role.sanctifier.maxUnsetNumber" : "技能最大使用次数"
1445+
"role.sanctifier.cooldown" : "净化冷却时间"
14451446

14461447
"role.schrodingersCat.name" : "薛定谔的猫"
14471448
"role.schrodingersCat.short" : "猫"

Nebula/Roles/ExtremeRoles/Amnesiac.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ public class AmnesiacEvent : Events.LocalEvent{
77
public override void OnActivate()
88
{
99
switch (Amnesiac.targetsRoleModeOption.getSelection()){
10-
case 1:
10+
case 0:
1111
RPCEventInvoker.ImmediatelyChangeRole(PlayerControl.LocalPlayer,target.GetModData().role);
1212
break;
13-
case 2:
13+
case 1:
1414
RPCEventInvoker.ImmediatelyChangeRole(PlayerControl.LocalPlayer,target.GetModData().role);
15-
if(target.GetModData().role.side == Side.Crewmate) RPCEventInvoker.ImmediatelyChangeRole(target,Roles.CrewmateWithoutTasks);
15+
if(target.GetModData().role.side == Side.Crewmate) RPCEventInvoker.ImmediatelyChangeRole(target,Roles.Crewmate);
1616
else if(target.GetModData().role.side == Side.Impostor) RPCEventInvoker.ImmediatelyChangeRole(target,Roles.Impostor);
1717
else RPCEventInvoker.ImmediatelyChangeRole(target,Roles.Opportunist);
1818
break;
19-
case 3:
19+
case 2:
2020
RPCEventInvoker.SwapRole(PlayerControl.LocalPlayer,target);
2121
break;
22-
case 4:
22+
case 3:
2323
RPCEventInvoker.ImmediatelyChangeRole(PlayerControl.LocalPlayer,target.GetModData().role);
2424
RPCEventInvoker.ImmediatelyChangeRole(target,Roles.Opportunist);
2525
break;

Nebula/Roles/ExtremeRoles/Cascrubinter.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ public override void LoadOptionData(){
1414
public override void OnAnyoneDied(byte playerId){
1515
if(playerId == target.PlayerId){
1616
switch(changeRoleAfterTargetDiedOption.getSelection()){
17-
case 2:
17+
case 1:
1818
RPCEventInvoker.ImmediatelyChangeRole(PlayerControl.LocalPlayer,Roles.Opportunist);
1919
break;
20-
case 3:
20+
case 2:
2121
RPCEventInvoker.ImmediatelyChangeRole(PlayerControl.LocalPlayer,Roles.Amnesiac);
2222
break;
2323
}
2424
}
2525
}
2626

27-
public override void GlobalInitialize(PlayerControl __instance)
27+
public override void GlobalInitialize(PlayerControl __instance){
28+
WinTrigger = false;
29+
}
30+
31+
public override void Initialize(PlayerControl __instance)
2832
{
2933
List<PlayerControl> players = PlayerControl.AllPlayerControls.ToArray().ToList();
3034
for (int i = players.Count - 1; i >= 0; i--)
@@ -38,7 +42,6 @@ public override void GlobalInitialize(PlayerControl __instance)
3842
return;
3943
}
4044
target = players[NebulaPlugin.rnd.Next(0,players.Count)];
41-
WinTrigger = false;
4245
}
4346

4447
/*

Nebula/Roles/ExtremeRoles/Decider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ static void guesserOnClick(int buttonTarget, MeetingHud __instance)
2828
FDecider.niceDeciderCannotKillCrewmateOption.getBool() &&
2929
target.GetModData().role.side == Side.Crewmate &&
3030
target.GetModData().role != Roles.Madmate && !target.GetModData().extraRole.Contains(Roles.SecondaryMadmate)
31-
) || !(
31+
) && !(
3232
PlayerControl.LocalPlayer.GetModData().HasExtraRole(Roles.SecondaryMadmate) &&
3333
FDecider.madmateCanKillEveryoneOption.getBool()
34-
) || !(
34+
) && !(
3535
PlayerControl.LocalPlayer.GetModData().HasExtraRole(Roles.SecondaryJackal) &&
3636
FDecider.jackalCanKillEveryoneOption.getBool()
3737
)

Nebula/Roles/ExtremeRoles/GameMaster.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public class GMEvent : Events.LocalEvent
1111
public GMEvent(PlayerControl target) : base(0.2f) { this.target = target; }
1212
public override void OnTerminal()
1313
{
14-
RPCEventInvoker.SetExtraRole(target,Roles.SecretCrush,0);
14+
RPCEventInvoker.SetExtraRole(target,Roles.Flash,0);
15+
RPCEventInvoker.SetExtraRole(target,Roles.SecondaryJackal,0);
1516
}
1617
}
1718

0 commit comments

Comments
 (0)