Example #1
0
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     if (target.Parameter.CurrentHP < target.Parameter.MaxHP)
     {
         target.heal(BasisParameter.EffectPoint);
     }
     else if(target is PlayerController){
         (target as PlayerController).Parameter.increaseExHP(incMaxHP);
         target.heal(incMaxHP, false);
     }
 }
    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;

        }
    }
Example #3
0
 public override void potionEffect(MyCharacterController user, MyCharacterController target)
 {
     target.heal(target.Parameter.MaxHP);
     if (target.Parameter.CurrentRealSTR < target.Parameter.MaxSTR) {
         target.Parameter.setSTR(target.Parameter.MaxSTR);
         GameController.PlayingLogger.addLogFormat("{0} のちからが回復した。", target.Parameter.Name);
     }
     target.exitBuff(typeof(SpeedDown));
     target.exitBuff(typeof(Confusion));
     target.exitBuff(typeof(Blind));
 }