Пример #1
0
 public bool RewardPerson(Person p)
 {
     if (this.Fund < this.RewardPersonFund)
     {
         return false;
     }
     p.RewardFinished = true;
     this.DecreaseFund(this.RewardPersonFund);
     int idealOffset = Person.GetIdealOffset(p, this.BelongedFaction.Leader);
     p.IncreaseLoyalty((15 - (idealOffset / 5)) + 4 - (int)p.PersonalLoyalty);
     ExtensionInterface.call("RewardPerson", new Object[] { this.Scenario, this, p });
     return true;
 }
Пример #2
0
 public bool RewardPerson(Person p)
 {
     if (this.Fund < this.RewardPersonFund)
     {
         return false;
     }
     p.RewardFinished = true;
     this.DecreaseFund(this.RewardPersonFund);
     int idealOffset = Person.GetIdealOffset(p, this.BelongedFaction.Leader);
     p.IncreaseLoyalty((15 - (idealOffset / 5)) +(int) p.PersonalLoyalty);
     return true;
 }