Skip to content

Commit

Permalink
girl costume typos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mattieFM committed Oct 22, 2023
1 parent 2f91c33 commit 3688f33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion www/mods/commonLibs/_common/API_CORE/itemAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,15 @@ MATTIE.itemAPI.RunTimeItem = class {
switch (this.type) {
case ITEM_TYPES.ITEM:
this._data.id = $dataItems.length;
this.typeString = '$dataItems';
break;
case ITEM_TYPES.ARMOR:
this._data.id = $dataArmors.length;
this.typeString = '$dataArmors';
break;
case ITEM_TYPES.WEAPON:
this._data.id = $dataWeapons.length;
this.typeString = '$dataWeapons';
break;

default:
Expand Down Expand Up @@ -353,7 +356,7 @@ MATTIE.itemAPI.RunTimeItem = class {
const openingTag = '<Custom Synthesis Effect>';
const closingTag = '</Custom Synthesis Effect>';
this._data.craftingCb = cb;
const script = `$dataItems[${this._data.id}].craftingCb()`;
const script = `${this.typeString}[${this._data.id}].craftingCb()`;
this._data.customSynthEval = script;
}

Expand Down
11 changes: 10 additions & 1 deletion www/mods/multiplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,5 +185,14 @@ MATTIE.multiplayer.getCurrentNetController = () => {
MATTIE.betterCrowMauler.betterCrowMaulerInit();
} // setup crow mauler if not termina

MATTIE.itemAPI.createCostume('$girl', 0, 'girl costume', new MATTIE.itemAPI.RuntimeIcon('girlCostume'), 130, [130, 8, 45, 46]);
const girlCostume = MATTIE.itemAPI.createCostume('$girl', 0, 'girl costume', new MATTIE.itemAPI.RuntimeIcon('girlCostume'), 130, [130, 8, 45, 46], false);
girlCostume.setCraftingCallback(() => {
SceneManager.goto(Scene_Map);
setTimeout(() => {
MATTIE.fxAPI.startScreenShake(1, 1, 10);
// eslint-disable-next-line max-len
MATTIE.msgAPI.displayMsg('You find yourself overcome with grief as you sow a child\'s soul\ninto fabric and deformed flesh. What have these dungeons done \nto you to make you willing to do such a thing, without reason.');
}, 500);
});
girlCostume.spawn();
})();

0 comments on commit 3688f33

Please sign in to comment.