中级玩家
 
- 贡献度
- 0
- 金元
- 2064
- 积分
- 206
- 精华
- 0
- 注册时间
- 2021-3-18
|
本帖最后由 只是小小白a 于 2026-5-5 14:00 编辑
搜索Populate这个函数,找到CardReward这个类,然后继续在Populate这个方法上修改 this._cards.AddRange(collection);
if (System.Random.Shared.NextDouble() < 0.16)
{
foreach (CardCreationResult cardCreationResult in this._cards)
{
CardModel card = cardCreationResult.Card;
if (card.IsUpgradable)
{
CardCmd.Upgrade(card, CardPreviewStyle.HorizontalLayout);
}
}
}
foreach (CardCreationResult cardCreationResult2 in this._cards)
{
if (System.Random.Shared.NextDouble() < 0.22)
{
CardModel card2 = cardCreationResult2.Card;
if (card2.IsUpgradable)
{
CardCmd.Upgrade(card2, CardPreviewStyle.HorizontalLayout);
}
}
}
在this._cards.AddRange(collection);后面增加,概率你自己调整
加上
using MegaCrit.Sts2.Core.Nodes.CommonUi;
using MegaCrit.Sts2.Core.Commands;
补货我没研究过,但是商店升级卡可能也是类似的方法吧,找到商店补货的函数就行了如果编译不通过,就把出错行删了
|
|