Esempio n. 1
0
    void selectGoodEffect(MyCharacterController user)
    {
        int select = GameController.Rnd.Next(effectcount);
        switch (select) {
            case 0:
                user.Parameter.increaseMaxSTR(1, true);
                user.Parameter.increaseCurrentSTR(1, false);
                break;
            case 1:
                user.heal(user.Parameter.MaxHP);
                break;
            case 2:
                user.registerBuff(new InvalidatePoison(user));
                break;
            case 3:
                user.registerBuff(new InvalidateSleep(user));
                break;
            case 4:
                user.registerBuff(new InvalidateHunger(user));
                break;
            case 5:
                user.registerBuff(new AutoItemAppraise(user));
                break;
            case 6:
                user.registerBuff(new SneakWalk(user));
                break;

        }
    }
Esempio n. 2
0
 public static void stealTest(MyCharacterController target)
 {
     StealLavel level = StealLavel.ONE;
     if (Input.GetKey(KeyCode.Alpha2))
     {
         level = StealLavel.TWO;
     }
     else if(Input.GetKey(KeyCode.Alpha3))
     {
         level = StealLavel.THREE;
     }
     target.registerBuff(new Steal(null, target, level));
 }
Esempio n. 3
0
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.registerBuff(new Paralyze(target, BasisParameter.EffectPoint, StatusBuffBasis.CountDownType.TURN));
 }
Esempio n. 4
0
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.registerBuff(new Blind(target,BasisParameter.EffectPoint));
 }
Esempio n. 5
0
 public override void applyItemEffect(MyCharacterController src, params ObjectEntity[] targets)
 {
     //base.applyItemEffect(src, targets);
     src.registerBuff(new HawkEye(src));
 }
Esempio n. 6
0
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     var buff = new Sleep(target, BasisParameter.EffectPoint);
     target.registerBuff(buff);
 }
Esempio n. 7
0
 public override MyCharacterController trapEffectForNPC(MyCharacterController target)
 {
     target.registerBuff(new Sealed(target, effecttime));
     return target;
 }
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.registerBuff(new Perception(target));
 }
Esempio n. 9
0
 public override MyCharacterController trapEffectForPlayer(MyCharacterController target)
 {
     target.registerBuff(new Sleep(target, 10, StatusBuffBasis.CountDownType.TURN));
     return target;
 }
Esempio n. 10
0
 public override MyCharacterController trapEffectForNPC(MyCharacterController target)
 {
     target.registerBuff(new Rust(target, typeof(WeaponBasis), EffectAmount));
     return target;
 }