Skip to content

Commit

Permalink
fix warnings in mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Nov 6, 2023
1 parent 521a3dc commit 098e5e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions SCHIZO/Creatures/Components/CarryCreature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ void IOnTakeDamage.OnTakeDamage(DamageInfo damageInfo)
if (damageInfo.damage > 0) Drop();
}

bool IOnMeleeAttack.HandleMeleeAttack(GameObject target)
bool IOnMeleeAttack.HandleMeleeAttack(GameObject targetObject)
{
// prevent bite after releasing
if (target.GetComponent<GetCarried>()) return true;
if (targetObject.GetComponent<GetCarried>()) return true;

// pick up held creature instead of eating it
Player player = target.GetComponent<Player>();
Player player = targetObject.GetComponent<Player>();
if (!player) return false;

GameObject heldObject = Inventory.main.GetHeldObject();
Expand Down
1 change: 0 additions & 1 deletion SCHIZO/Helpers/StaticHelpers.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
Expand Down
4 changes: 2 additions & 2 deletions Unity/Assets/Scripts/SCHIZO/Items/CloneItemLoader.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using SCHIZO.Items.Data;
using TriInspector;
using UnityEngine;
using ReadOnlyAttr = TriInspector.ReadOnlyAttribute;

namespace SCHIZO.Items
{
public abstract partial class CloneItemLoader : ScriptableObject
{
[ReadOnly] public CloneItemData itemData;
[ReadOnlyAttr] public CloneItemData itemData;
}
}

0 comments on commit 098e5e1

Please sign in to comment.