Exemplo n.º 1
0
 private void On_FireBarrage_Enter(On.EntityStates.Commando.CommandoWeapon.FireBarrage.orig_OnEnter orig, FireBarrage self)
 {
     orig(self);
     if (Scepter_V2.instance.GetCount(self.outer.commonComponents.characterBody) > 0)
     {
         self.durationBetweenShots /= 2f;
         self.bulletCount          *= 2;
     }
 }
Exemplo n.º 2
0
 private static void On_FireBarrage_Enter(On.EntityStates.Commando.CommandoWeapon.FireBarrage.orig_OnEnter orig, FireBarrage self)
 {
     orig(self);
     if (Scepter.instance.GetCount(self.outer.commonComponents.characterBody) > 0)
     {
         self.SetFieldValue("durationBetweenShots", self.GetFieldValue <float>("durationBetweenShots") / 2f);
         self.SetFieldValue("bulletCount", self.GetFieldValue <int>("bulletCount") * 2);
     }
 }