游戏达人
  
- 贡献度
- 270
- 金元
- 17914
- 积分
- 2871
- 精华
- 0
- 注册时间
- 2014-11-30
|
本帖最后由 fanvalen 于 2025-9-7 08:55 编辑
DeathMonitor.Kill
将public void Kill(Death death)
{
base.sm.death.Set(death, base.smi, false);
}改成
public void Kill(Death death)
{
//加一个是否是小人的判断
if (!this.isDuplicant)
{
base.sm.death.Set(death, base.smi, false);
}
}保存
再将DeathMonitor.ApplyDeathpublic void ApplyDeath()
{
if (this.isDuplicant)
{
Game.Instance.assignmentManager.RemoveFromAllGroups(base.GetComponent<MinionIdentity>().assignableProxy.Get());
base.GetComponent<KSelectable>().SetStatusItem(Db.Get().StatusItemCategories.Main, Db.Get().DuplicantStatusItems.Dead, base.smi.sm.death.Get(base.smi));
float num = 600f - GameClock.Instance.GetTimeSinceStartOfReport();
ReportManager.Instance.ReportValue(ReportManager.ReportType.PersonalTime, num, string.Format(UI.ENDOFDAYREPORT.NOTES.PERSONAL_TIME, DUPLICANTS.CHORES.IS_DEAD_TASK), base.smi.master.gameObject.GetProperName());
Pickupable component = base.GetComponent<Pickupable>();
if (component != null)
{
component.UpdateListeners(true);
}
}
base.GetComponent<KPrefabID>().AddTag(GameTags.Corpse, false);
}
改成
public void ApplyDeath()
{
if (this.isDuplicant)
{
GameClock.Instance.GetTimeSinceStartOfReport();
}
base.GetComponent<KPrefabID>().AddTag(GameTags.Corpse, false);
}
最后保存即可成功
|
评分
-
1
查看全部评分
-
|