Skip to content

Commit

Permalink
2.0.1 全アイテム禁止マップかどうか取得するインターフェース追加
Browse files Browse the repository at this point in the history
  • Loading branch information
elleonard committed May 27, 2023
1 parent 6e3a0c7 commit 9822c29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/codes/SealItem/DarkPlasma_SealItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ function Game_Map_SealItemMixIn(gameMap: Game_Map) {
|| !!$dataMap.meta.sealHealItem && DataManager.isHealItem(item)
|| !!$dataMap.meta.sealResurrectionItem && DataManager.isResurrectionItem(item);
};

gameMap.isAllItemSealed = function () {
return !!$dataMap?.meta.sealAllItem;
};
}

Game_Map_SealItemMixIn(Game_Map.prototype);
Expand Down
1 change: 1 addition & 0 deletions src/codes/SealItem/SealItem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ declare namespace DataManager {

declare interface Game_Map {
isItemSealed(item: MZ.Item): boolean;
isAllItemSealed(): boolean;
}

declare interface Game_Actor {
Expand Down
4 changes: 3 additions & 1 deletion src/codes/SealItem/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ DarkPlasma_SealItem:
license: MIT
histories:
- date: 2023/05/27
version: 2.0.0
version: 2.0.1
description: '全アイテム禁止マップかどうか取得するインターフェース追加'
- version: 2.0.0
description: 'TypeScript移行'
- description: '特徴の制御をAllocateUniqueTraitIdに任せる'
- description: 'マップのメモ欄に対応'
Expand Down

0 comments on commit 9822c29

Please sign in to comment.