public BulletTransmit(EntityBase entity, int bulletid, bool clear = false) { this.m_Entity = entity; this.weapondata = LocalModelManager.Instance.Weapon_weapon.GetBeanById(bulletid); this.mThunderRatio = 1f; this.attackratio = 1f; if (this.m_Entity == null) { this.attribute = new EntityAttributeBase(); } else { if (!clear) { this.attribute = new EntityAttributeBase(this.m_Entity.m_Data.CharID); this.m_Entity.m_EntityData.attribute.AttributeTo(this.attribute); this.CritRate = this.attribute.CritRate.Value; this.CritSuperRate = this.attribute.CritSuperRate.Value; this.mThroughEnemy = this.m_Entity.m_EntityData.ThroughEnemy; this.mThroughRatio = this.m_Entity.m_EntityData.ThroughRatio; this.mDebuffList = this.m_Entity.GetDebuffList(); this.mHitCreate2 = this.m_Entity.m_EntityData.HitCreate2; this.mHitCreate2Percent = this.m_Entity.m_EntityData.mHitCreate2Percent; this.mHitSputter = this.m_Entity.m_EntityData.BulletSputter; this.trailType = this.m_Entity.m_EntityData.ArrowTrailType; this.headType = this.m_Entity.m_EntityData.ArrowHeadType; } else { this.Clear(); } this.attack = MathDxx.CeilToInt((float)this.m_Entity.m_EntityData.GetAttack(this.weapondata.Attack)); } }
public void Init(EntityBase entity, int weaponid) { this.m_Entity = entity; this.BulletID = weaponid; this.m_Data = LocalModelManager.Instance.Weapon_weapon.GetBeanById(this.BulletID); this.OnInit(); this.Install(); }
public AIMove1025(EntityBase entity, int range) : base(entity) { this.range = range; this.weaponData = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0x1397); }
protected override void OnInstall() { this.percent = float.Parse(base.m_SkillData.Args[0]); base.m_Entity.OnKillAction = (Action <EntityBase, Vector3>)Delegate.Combine(base.m_Entity.OnKillAction, new Action <EntityBase, Vector3>(this.OnKillAction)); this.weapondata = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0xbb9); }
public AIMove1037(EntityBase entity) : base(entity) { this.weapondata = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0x13ad); }
public AIMoveBomberman(EntityBase entity, int range) : base(entity) { this.checkpos = new Vector2Int(-1, -1); this.range = range; this.weaponData = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0xbd9); }
public AIMove1038(EntityBase entity) : base(entity) { this.attackcount = 8; this.action = new ActionBattle(); this.weapondata = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0x13af); }