Upload from upload_mods.ps1
This commit is contained in:
84
Scripts/MinEvents/MinEventActionTriggerSkill.cs
Normal file
84
Scripts/MinEvents/MinEventActionTriggerSkill.cs
Normal file
@@ -0,0 +1,84 @@
|
||||
using System.Xml.Linq;
|
||||
|
||||
public class MinEventActionTriggerSkill : MinEventActionRemoveBuff
|
||||
{
|
||||
private string type = "";
|
||||
private string strEntity = "";
|
||||
private string entityPos = "";
|
||||
private string entityRot = "";
|
||||
private string strDistance = "";
|
||||
private string strHeight = "";
|
||||
private string strSpawner = "";
|
||||
private string strDirection = "random";
|
||||
private string strSound = "";
|
||||
private float numStartScale = 0;
|
||||
private int minion = 0;
|
||||
private int numEntities = 1;
|
||||
private int attackPlayer = 0;
|
||||
private int checkMaxEntities = 0;
|
||||
public int minMax = 40;
|
||||
public int maxEntities = 20;
|
||||
public int repeat = 1;
|
||||
public int allNames = 1;
|
||||
public int atPlayerLevel = 0;
|
||||
public int randomRotation = 1;
|
||||
public int numRotation = -1;
|
||||
public int isBoss = -1;
|
||||
public int handParticle = -1;
|
||||
public string lootListName = "";
|
||||
public string lootDropClass = "";
|
||||
public int lootDropChance = 1;
|
||||
public string navIcon = "";
|
||||
public string buffList = "";
|
||||
public bool forceSpawn = false;
|
||||
|
||||
public override void Execute(MinEventParams _params)
|
||||
{
|
||||
//Log.Out("MinEventActionTriggerSkill-Execute START");
|
||||
|
||||
/*if (!SingletonMonoBehaviour<ConnectionManager>.Instance.IsServer)
|
||||
{
|
||||
//Log.Out("MinEventActionTriggerSkill-Execute IS CLIENT");
|
||||
return;
|
||||
}*/
|
||||
|
||||
EntityAlive entity = _params.Self as EntityAlive;
|
||||
EntityAlive entityPlayer = _params.Self as EntityAlive;
|
||||
|
||||
if (targetType == TargetTypes.other)
|
||||
{
|
||||
entity = this.targets[0];
|
||||
}
|
||||
|
||||
if (entity == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (type == "offensiverage")
|
||||
{
|
||||
RebirthUtilities.TriggerOffensiveRage(entity);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool ParseXmlAttribute(XAttribute _attribute)
|
||||
{
|
||||
var flag = base.ParseXmlAttribute(_attribute);
|
||||
if (flag) return true;
|
||||
var name = _attribute.Name;
|
||||
|
||||
if (name == null)
|
||||
{
|
||||
return flag;
|
||||
}
|
||||
else if (name == "type")
|
||||
{
|
||||
type = _attribute.Value;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user