Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public AIMove1025(EntityBase entity, int range) : base(entity)
 {
     this.range      = range;
     this.weaponData = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0x1397);
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 public AIMove1037(EntityBase entity) : base(entity)
 {
     this.weapondata = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0x13ad);
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 public AIMove1038(EntityBase entity) : base(entity)
 {
     this.attackcount = 8;
     this.action      = new ActionBattle();
     this.weapondata  = LocalModelManager.Instance.Weapon_weapon.GetBeanById(0x13af);
 }