SocketAbility.IsNewItemBetter
Declaration#
public bool IsNewItemBetter(GDTKItem replacement)Parameters#
| Name | Description |
|---|---|
| replacement | Item to compare |
Description#
Check if a new item is better than the current attachment (if swapping allowed)
Usage#
using NullSave.GDTK.Inventory;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(SocketAbility target, GDTKItem other) { bool result = target.IsNewItemBetter(other); }
}