- 好友
- 0
- 在线时间
- 91 小时
- 最后登录
- 2020-6-18
扈从
 
- UID
- 620295
- 第纳尔
- 405
- 精华
- 0
- 互助
- 3
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 0
- 注册时间
- 2012-1-10
 鲜花( 4)  鸡蛋( 0)
|
发表于 2020-4-27 16:00:12
|
显示全部楼层
本帖最后由 hwr0521 于 2020-4-27 16:13 编辑
預設打巢穴都是以少打多 殺敵超過一定比例就會加了 當然要打了mod才會顯示 我最近一次打山賊慘勝 結算畫面左下跳出一行綠字: You have gained 7 Valor.那些用mod進巢穴可以帶幾十個人的 當我沒說..
可以看一下打巢穴時 Valor 的算法:
public static void OnBattleWon(MapEvent mapEvent, float contribution)
{
float num = 0f;
float strengthRatio = mapEvent.GetMapEventSide(mapEvent.PlayerSide).StrengthRatio;
if (strengthRatio > 0.9f)
{
num = Math.Min(20f, (float)Math.Sqrt((double)mapEvent.StrengthOfSide[(int)mapEvent.GetOtherSide(mapEvent.PlayerSide)]) * strengthRatio);
}
int xpValue = (int)(num * contribution);
TraitLevelingHelper.AddPlayerTraitXPAndLogEntry(DefaultTraits.Valor, xpValue, ActionNotes.BattleValor, null);
}
|
|