Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:44:53 +09:30
commit f1fbbe67bb
1722 changed files with 165268 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
public class DialogActionAddBuffRebirth : BaseDialogAction
{
public override void PerformAction(EntityPlayer player)
{
LocalPlayerUI uiforPlayer = LocalPlayerUI.GetUIForPlayer(player as EntityPlayerLocal);
if (!string.IsNullOrEmpty(Value) && Value.ToLower() == "self")
{
var entityNPC = uiforPlayer.xui.Dialog.Respondent;
if (entityNPC != null)
{
Debug.Log($"Adding {ID}...");
// calls buffOrderDismiss, removes the cvar. Doesn't work
entityNPC.Buffs.AddBuff(base.ID);
}
return;
}
player.Buffs.AddBuff(ID);
}
}