Skip to content

Commit

Permalink
Merge branch 'main' into sneaky-fumo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Apr 23, 2024
2 parents 24d4fee + 2e7520e commit 10849af
Show file tree
Hide file tree
Showing 46 changed files with 6,202 additions and 34 deletions.
1 change: 1 addition & 0 deletions SCHIZO/Events/Ermcon/Ermcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public override void StartEvent()

public override void EndEvent()
{
if (!_isOccurring) return;
targets.Clear();
foreach (ErmconAttendee ermEnthusiast in conMembers)
{
Expand Down
27 changes: 27 additions & 0 deletions SCHIZO/Items/Components/SeaMonkeyHeldItemOverrides.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using UnityEngine;

namespace SCHIZO.Items.Components;

partial class SeaMonkeyHeldItemOverrides
{
private Vector3 _savedLocalPos;
private Quaternion _savedLocalRot;
public void OnPickedUp()
{
if (!enabled) return;

_savedLocalPos = overrideTransform.localPosition;
_savedLocalRot = overrideTransform.localRotation;

overrideTransform.localPosition = localPosition;
overrideTransform.localEulerAngles = localRotation;
}

public void OnDropped()
{
if (!enabled) return;

overrideTransform.localPosition = _savedLocalPos;
overrideTransform.localRotation = _savedLocalRot;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using HarmonyLib;

namespace SCHIZO.Items.Components;
[HarmonyPatch]
public static class SeaMonkeyHeldItemOverridesPatches
{
[HarmonyPatch(typeof(SeaMonkeyHeldItem), nameof(SeaMonkeyHeldItem.Hold), [typeof(Pickupable), typeof(bool)])]
[HarmonyPostfix]
public static void OnHold(Pickupable pickupable)
{
if (!pickupable) return;
SeaMonkeyHeldItemOverrides overrideComponent = pickupable.GetComponent<SeaMonkeyHeldItemOverrides>();
if (!overrideComponent) return;

overrideComponent.OnPickedUp();
}

[HarmonyPatch(typeof(SeaMonkeyHeldItem), nameof(SeaMonkeyHeldItem.Drop))]
[HarmonyPrefix]
public static void OnDrop(SeaMonkeyHeldItem __instance)
{
if (!__instance.item) return;
SeaMonkeyHeldItemOverrides overrideComponent = __instance.item.GetComponent<SeaMonkeyHeldItemOverrides>();
if (!overrideComponent) return;

overrideComponent.OnDropped();
}
}
8 changes: 7 additions & 1 deletion SCHIZO/Items/PDAJournal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ partial class PDAJournal
{
protected override void Register()
{
if (!encyData)
{
LOGGER.LogWarning($"{nameof(PDAJournal)} has no encyData, skipping registration");
return;
}
encyData.Register(key);
Subtitles.SubtitlesHandler.RegisterMetadata(subtitles, encyData.description.text);
if (subtitles)
Subtitles.SubtitlesHandler.RegisterMetadata(subtitles, encyData.description.text);
PDAJournalPrefab.Register(this);
}

Expand Down
47 changes: 34 additions & 13 deletions Unity/Assets/Mod/Evil Fumo/Evil Fumo item.prefab
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!65 &4332142020512149085
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3050323588128677620}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 4.0000005, y: 4.3434496, z: 3.2994847}
m_Center: {x: -0, y: 2.1420708, z: -0.17539322}
--- !u!1 &4427810026626581335
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -177,6 +164,21 @@ MonoBehaviour:
m_EditorClassIdentifier:
propModel: {fileID: 853428788585080163}
viewModel: {fileID: 7656616662938203038}
--- !u!114 &7732719034029743030
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5958827312421353464}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: def191360849e4c4eb0083d03d029b81, type: 3}
m_Name:
m_EditorClassIdentifier:
overrideTransform: {fileID: 4242091266149702868}
localPosition: {x: 0, y: 0, z: 0}
localRotation: {x: -40, y: 0, z: 30}
--- !u!114 &5518736193718426385
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -197,6 +199,19 @@ MonoBehaviour:
_fabricatorMesh: {fileID: 4300000, guid: f02dbf41adbb6c14c8b2eb4704e4fd18, type: 2}
_fabricatorPrefab: {fileID: 4931248133309480, guid: 18b270460e531e34ca5ebc989dccd026,
type: 3}
--- !u!65 &4332142020512149085
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3050323588128677620}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 4.0000005, y: 4.3434496, z: 3.2994847}
m_Center: {x: -0, y: 2.1420708, z: -0.17539322}
--- !u!1001 &8219148621552729296
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -339,6 +354,12 @@ GameObject:
type: 3}
m_PrefabInstance: {fileID: 8219148621552729296}
m_PrefabAsset: {fileID: 0}
--- !u!4 &4242091266149702868 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 5246314888156504068, guid: 494d51939a4d56f47a65310c2d52e286,
type: 3}
m_PrefabInstance: {fileID: 8219148621552729296}
m_PrefabAsset: {fileID: 0}
--- !u!1 &2059160104811668376 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 7963440748852813640, guid: 494d51939a4d56f47a65310c2d52e286,
Expand Down
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/Creep (evil).asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Evil Neuro - Creep (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: -206.1, y: -274.68, z: -740.5}
rotation: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 90, z: 0}
unlockFmodEvent:
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/Death of the Law (evil).asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Evil Neuro - Death of the Law (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: -59.4, y: 28.69, z: 545.45}
rotation: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 180, z: 0}
unlockFmodEvent:
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/Francium.asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Neuro-sama - Francium (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: -251.636, y: 41.455, z: -790.693}
rotation: {x: 44, y: 0, z: 75}
rotation: {x: -4, y: 20, z: 80}
unlockFmodEvent:
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/Mechanical Heartbeat.asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Neuro & Evil - Mechanical Heartbeat (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: -1185, y: 18.19, z: -713}
rotation: {x: 342, y: 329, z: 355}
rotation: {x: -15, y: -65, z: 9}
unlockFmodEvent:
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/Neuro Neuro.asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Neuro-sama - Miku (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: 77.49, y: -377.09, z: -914.05}
rotation: {x: 2, y: 231, z: 332}
rotation: {x: 0, y: 50, z: 20}
unlockFmodEvent:
7 changes: 4 additions & 3 deletions Unity/Assets/Mod/Jukebox/Ocean Man.asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Neuro-sama - Ocean Man (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: -82.53, y: -344.26, z: -1396.69}
rotation: {x: 10, y: 45, z: 0}
position: {x: -82.53, y: -344.28, z: -1396.69}
rotation: {x: -2, y: 135, z: 0}
unlockFmodEvent:
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/Sweater Weather.asset
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: Evil Neuro - Sweater Weather (cover)
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
diskSpawnLocation:
position: {x: -768, y: 50.1, z: 689.9}
rotation: {x: 358, y: 294, z: 49}
rotation: {x: -10, y: -66, z: 49}
unlockFmodEvent:
5 changes: 3 additions & 2 deletions Unity/Assets/Mod/Jukebox/TruckersFM/TruckersFM.asset
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MonoBehaviour:
identifier: TruckersFM
source: 2
audioClip: {fileID: 0}
fmodEvent:
fmodEvent:
url: http://radio.truckers.fm
isStream: 1
streamLabelFormat: '<align=center><size=75%>TruckersFM</size></align>
Expand All @@ -24,7 +24,8 @@ MonoBehaviour:
overrideTrackLabel: 0
trackLabel: TruckersFM
unlockedOnStart: 0
diskPrefab: {fileID: 0}
diskPrefab: {fileID: 38736133463817561, guid: b451605680c7d0247a76ac6cc7b8be9a,
type: 3}
diskSpawnLocation:
position: {x: -369.3, y: -174.6, z: -319.7}
rotation: {x: 9.7, y: 7.5, z: 9.4}
Expand Down
76 changes: 76 additions & 0 deletions Unity/Assets/Mod/Jukebox/TruckersFM/cog disk truckersfm.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &6525880274626874321
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4691052849724364637, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 68c4bf79f01ae85468c245feb1519c49, type: 2}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalPosition.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalRotation.z
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5859987316805233714, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -90
objectReference: {fileID: 0}
- target: {fileID: 6492233284419335816, guid: d22ec62c611ee7545b0126d2a612b118,
type: 3}
propertyPath: m_Name
value: cog disk
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d22ec62c611ee7545b0126d2a612b118, type: 3}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Unity/Assets/Mod/Jukebox/cog disk.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 10849af

Please sign in to comment.