Skip to content

Commit

Permalink
strictモードを使う
Browse files Browse the repository at this point in the history
  • Loading branch information
elleonard committed Feb 8, 2023
1 parent b253563 commit 75ad812
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions InspirationSkill/InspirationSkill.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
*/

(() => {
'use strict';

const pluginName = "InspirationSkill";

Expand All @@ -211,7 +212,7 @@
PluginManager_Parser.prototype.parse = function (params) {
if (this.isObject(params, "string")) {
try {
parseParams = JSON.parse(params)
const parseParams = JSON.parse(params)
params = this.parse(parseParams);
} catch (e) {
params = this.convertNumber(params);
Expand Down Expand Up @@ -339,7 +340,7 @@
}

if (inspirationSkills.length) {
inspirationSkill = inspirationSkills[Math.floor( Math.random() * inspirationSkills.length )];
const inspirationSkill = inspirationSkills[Math.floor( Math.random() * inspirationSkills.length )];
subject.currentAction()._item._itemId = inspirationSkill;
subject.currentAction()._inspirationFlag = true;
subject.learnSkill(inspirationSkill);
Expand Down

0 comments on commit 75ad812

Please sign in to comment.