Skip to content

Commit

Permalink
alex
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Nov 29, 2023
1 parent a5ff8e5 commit b0609fd
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SCHIZO/Items/ErmBed/ErmBed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public sealed class ErmBed : ClonePrefab
TechType.BedZeta;
#endif

private Texture2D _replacementTexture;
private readonly Texture2D _replacementTexture;

[SetsRequiredMembers]
public ErmBed(ModItem modItem) : base(modItem, CLONE_TARGET)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions Unity/Assets/Mod/Green Screen/Green Screens.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c08c4776b89c430d985e9557dc60112d, type: 3}
m_Name: Green Screens
m_EditorClassIdentifier:
registryItems: []
8 changes: 8 additions & 0 deletions Unity/Assets/Mod/Green Screen/Green Screens.asset.meta

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

2 changes: 1 addition & 1 deletion Unity/Assets/Scripts/SCHIZO/Items/ErmBed/ErmBedLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed partial class ErmBedLoader : ItemLoader

public override TriValidationResult AcceptsItem(ItemData item)
{
return item.classId == "ermbed" ? TriValidationResult.Valid
return item.classId.ToLower() == "ermbed" ? TriValidationResult.Valid
: TriValidationResult.Error("ErmBedLoader only accepts an ErmBed");
}
}
Expand Down
8 changes: 8 additions & 0 deletions Unity/Assets/Scripts/SCHIZO/Items/Gymbag/GymbagLoader.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
using JetBrains.Annotations;
using SCHIZO.Items.Data;
using TriInspector;

namespace SCHIZO.Items.Gymbag
{
[UsedImplicitly]
public sealed partial class GymbagLoader : ItemLoader
{
public override TriValidationResult AcceptsItem(ItemData item)
{
string classId = item.classId.ToLower();
return classId == "gymbag" || classId == "quantumgymbag" ? TriValidationResult.Valid
: TriValidationResult.Error("GymbagLoader only accepts a Gymbag or a QuantumGymbag");
}
}
}

0 comments on commit b0609fd

Please sign in to comment.