|
本帖最后由 top10001 于 2020-4-17 21:25 编辑
謝謝,我再來改看看
----------------------------------
慘~1.2版的代碼不一樣,有大神會改嗎
else if (party.IsCaravan)
{
if (party.Party.Owner == Hero.MainHero)
{
explainedNumber.Add(10f, this._randomSizeBonusTemporary);
}
else
{
Hero owner = party.Party.Owner;
if (owner != null && owner.IsNotable)
{
explainedNumber.Add((float)(10 * ((party.Party.Owner.Power < 100) ? 1 : ((party.Party.Owner.Power < 200) ? 2 : 3))), this._randomSizeBonusTemporary);
}
}
}
else if (party.IsVillager)
{
explainedNumber.Add(40f, this._randomSizeBonusTemporary);
}
return (int)explainedNumber.ResultNumber;
}
}
}
|
|