示例#1
0
 /// <summary>
 /// 构造医药包
 /// </summary>
 /// <param name="RecovTick">每一跳回复的HP</param>
 /// <param name="RecovDeltaTime">每一跳的间隔</param>
 /// <param name="RecovTime">总回复时间</param>
 public HPBag(int RecovTick, float RecovDeltaTime, float RecovTime) : base(itemid, "能量包", "能够回复机械能量的注射装置", null)
 {
     this.RecovTick      = RecovTick;
     this.RecovDeltaTime = RecovDeltaTime;
     this.totalTime      = RecovTime;
     RuleUse             = new RuleSkillInActive(Owner.Owner) & new RuleNoUsing(Owner);
     RuleUseComplete     = new RuleTimeOver(5);
     RuleItemCancel      = new RuleFalse();
 }
示例#2
0
 public GPBag() : base(itemid, "护甲包", "护甲包可以提供护甲", null)
 {
     RuleItemCancel  = new RuleFalse();
     RuleUse         = new RuleSkillInActive(Owner.Owner) & new RuleNoUsing(Owner);
     RuleUseComplete = new RuleTimeOver(4);
 }