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;

        }
    }
Beispiel #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));
 }
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.registerBuff(new Paralyze(target, BasisParameter.EffectPoint, StatusBuffBasis.CountDownType.TURN));
 }
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.registerBuff(new Blind(target,BasisParameter.EffectPoint));
 }
 public override void applyItemEffect(MyCharacterController src, params ObjectEntity[] targets)
 {
     //base.applyItemEffect(src, targets);
     src.registerBuff(new HawkEye(src));
 }
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     var buff = new Sleep(target, BasisParameter.EffectPoint);
     target.registerBuff(buff);
 }
 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));
 }
 public override MyCharacterController trapEffectForPlayer(MyCharacterController target)
 {
     target.registerBuff(new Sleep(target, 10, StatusBuffBasis.CountDownType.TURN));
     return target;
 }
Beispiel #10
0
 public override MyCharacterController trapEffectForNPC(MyCharacterController target)
 {
     target.registerBuff(new Rust(target, typeof(WeaponBasis), EffectAmount));
     return target;
 }