骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买霸主CDKEY 购买战帆CDKEY
查看: 3621|回复: 10

[求助] 怎么修改升级后获得属性点和专精点的数量

[复制链接]

0

主题

9

回帖

8

积分

平民

Rank: 1

UID
3561880
第纳尔
0
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2023-9-14
鲜花(0) 鸡蛋(0)
发表于 2025-7-10 00:05:24 | 显示全部楼层
本帖最后由 taitaile 于 2025-7-10 00:59 编辑
chimaerachen 发表于 2025-6-7 17:59
会用dnspy么?
会的话修改:Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\TaleWorlds.CampaignS ...

只找到专精点,没找到属性点,请问大佬之后怎么改?
private void OnGainLevel(bool shouldNotify = true)
        
{
            
this.UnspentFocusPoints += Campaign.Current.Models.CharacterDevelopmentModel.FocusPointsPerLevel;
            
if (this.Hero.Level % Campaign.Current.Models.CharacterDevelopmentModel.LevelsPerAttributePoint == 0)
            
{
               
int unspentAttributePoints = this.UnspentAttributePoints;
               
this.UnspentAttributePoints = unspentAttributePoints + 1;

0

主题

9

回帖

8

积分

平民

Rank: 1

UID
3561880
第纳尔
0
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2023-9-14
鲜花(0) 鸡蛋(0)
发表于 2025-7-10 18:55:34 | 显示全部楼层
本帖最后由 taitaile 于 2025-7-10 18:59 编辑
taitaile 发表于 2025-7-10 00:05
只找到专精点,没找到属性点,请问大佬之后怎么改?
private void OnGainLevel(bool shouldNotify = true) ...

知道怎么改了,问chatgpt后明白意思了,改成这样,每级3个专精点,每四级8个属性点
rivate void OnGainLevel(bool shouldNotify = true)
                {
                        this.UnspentFocusPoints += 3;
                        if (this.Hero.Level % Campaign.Current.Models.CharacterDevelopmentModel.LevelsPerAttributePoint == 0)
                        {
                                int unspentAttributePoints = this.UnspentAttributePoints;
                                this.UnspentAttributePoints = unspentAttributePoints + 8;

0

主题

9

回帖

8

积分

平民

Rank: 1

UID
3561880
第纳尔
0
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2023-9-14
鲜花(0) 鸡蛋(0)
发表于 2025-7-12 08:39:01 | 显示全部楼层
chimaerachen 发表于 2025-7-11 00:03
大胆一点,在每级3个专精点之下,直接加一行代码,每级加属性点:

rivate void OnGainLevel(bool should ...

谢谢大佬
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2025-12-14 12:36 , Processed in 0.085861 second(s), 18 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表