-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference path="../../typings/rmmv.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// <reference path="./AllDeadState.d.ts" /> | ||
|
||
import { settings } from "./_build/DarkPlasma_AllDeadState_parameters"; | ||
|
||
function Game_Party_AllDeadStateMixIn(gameParty: Game_Party) { | ||
const _isAllDead = gameParty.isAllDead; | ||
gameParty.isAllDead = function () { | ||
return _isAllDead.call(this) || this.inBattle() && this.aliveMembers() | ||
.every(actor => settings.states.some(stateId => actor.isStateAffected(stateId))); | ||
}; | ||
} | ||
|
||
Game_Party_AllDeadStateMixIn(Game_Party.prototype); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
DarkPlasma_AllDeadState: | ||
name: DarkPlasma_AllDeadState | ||
year: 2023 | ||
license: MIT | ||
excludeLicenseManager: false | ||
histories: | ||
- date: 2023/04/08 | ||
version: 1.0.0 | ||
description: '公開' | ||
|
||
locates: | ||
- ja | ||
plugindesc: | ||
ja: '指定ステートで敗北判定させる' | ||
parameters: | ||
- param: states | ||
text: | ||
ja: ステート | ||
desc: | ||
ja: 指定ステートにかかったアクターは戦闘不能でなくとも敗北判定にカウントします。 | ||
type: state[] | ||
default: [] | ||
commands: [] | ||
structures: | ||
dependencies: | ||
base: [] | ||
orderAfter: [] | ||
orderBefore: [] | ||
help: | ||
ja: | | ||
アクターが指定したステートにかかっている場合、 | ||
戦闘不能でなくとも敗北判定にカウントします。 | ||
例えば、戦闘不能でないアクター全員が石化状態の場合 | ||
敗北判定にできます。 |