Skip to content

Commit

Permalink
1.0.0 指定ステートで敗北判定させる
Browse files Browse the repository at this point in the history
  • Loading branch information
elleonard committed Apr 8, 2023
1 parent 4f3f0fe commit 24d187a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/codes/AllDeadState/AllDeadState.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference path="../../typings/rmmv.d.ts" />
13 changes: 13 additions & 0 deletions src/codes/AllDeadState/DarkPlasma_AllDeadState.ts
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);
35 changes: 35 additions & 0 deletions src/codes/AllDeadState/config.yml
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: |
アクターが指定したステートにかかっている場合、
戦闘不能でなくとも敗北判定にカウントします。
例えば、戦闘不能でないアクター全員が石化状態の場合
敗北判定にできます。

0 comments on commit 24d187a

Please sign in to comment.