Skip to content

Commit

Permalink
祭坛复活时原主人必须在线
Browse files Browse the repository at this point in the history
  • Loading branch information
ENIACJushi committed Jun 16, 2024
1 parent fc6bc90 commit 7cb3926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Docs/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

#### 功能调整

使用新版本的 .tame(Player) 和 tamedToPlayerId,实现不需要跟随式寻主的女仆驯服操作;
- 女仆被驯服或重新部署时,不再需要走到主人附近
- 使用祭坛复活的女仆不再需要重新驯服,复活时原主人必须在线


庭灯:可以存储P点、为附近的女仆提供buff,打掉之后P点会以lore的形式存储在物品之中(需要测试lore中是否能包含translate文本)
Expand Down
9 changes: 2 additions & 7 deletions TouHouLittleMaid_BP/scripts/src/altar/AltarCraftHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,8 @@ export class AltarCraftHelper{
// 转换lore字符串
let strPure = Tool.lore2Str(lore);

// 只有原主人能复活
let ownerId = StrMaid.Owner.getId(strPure);

if(ownerId === undefined || player.id === ownerId){
EntityMaid.fromStr(strPure, dimension, location, false);
}
return true;
// 只有原主人在场才能复活
return EntityMaid.fromStr(strPure, dimension, location, false) !== undefined;
}
}
break;
Expand Down

0 comments on commit 7cb3926

Please sign in to comment.