public static void Prefix(GameModel __instance, long actorId, GameObject gameObj, bool skipNotify) { var potentialTag = PersistentAmmoManager.GetPotentialDataTag(gameObj); if (potentialTag != null) { ExtendedData.extendedActorData[actorId] = potentialTag; } }
public static void Prefix(GameModel __instance, long actorId, GameObject gameObj, bool skipNotify) { var potentialTag = PersistentAmmoManager.GetPotentialDataTag(gameObj); if (potentialTag != null) { ExtendedData.preparedData[DataIdentifier.GetActorIdentifier(actorId)] = new ExtendedData.PreparedData() { SourceType = ExtendedData.PreparedData.PreparationSource.AMMO, Data = potentialTag }; } }