XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

DeathMod

【Terraria】DeathMod (now aka Soul Harvest)

公开
关注 0 Fork 0 Star 0
UTF-8
using SoulHarvest.Items;
using System;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace SoulHarvest.Common;


/// <summary>
/// Keeps the Boss reward subsystem compilable while MyPlayer owns the public API.
/// An instance method with either name may replace these forwarding extensions
/// without changing any call sites.
/// </summary>
public static class ReaperProgressionPlayerExtensions
{
    public static bool TryGrantSoulSeal(this MyPlayer modPlayer, ReaperStage stage)
    {
        return ReaperProgressionSoulSealService.TryGrant(modPlayer.Player, stage);
    }

    public static bool TryDeliverPendingSoulSeals(this MyPlayer modPlayer)
    {
        return ReaperProgressionSoulSealService.TryDeliverPending(modPlayer.Player);
    }
}