Skip to content

Commit

Permalink
chore: Temporarily remove summoning action while I figure out the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Nov 25, 2022
1 parent 3757ad6 commit 74a8654
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions src/actions/start-skill/summoning.mts
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
import type {Summoning, SummoningRecipe} from 'melvor';
import {defineAction} from '../../lib/api.mjs';
import {InternalCategory} from '../../lib/registries/action-registry.mjs';
import type {AltRecipeData, SingleRecipeData} from '../_common/single-recipe-action.mjs';
import {SingleRecipeAction} from '../_common/single-recipe-action.mjs';

defineAction(
SingleRecipeAction
.new<AltRecipeData<Summoning>, Summoning>({
category: InternalCategory.START_SKILL,
localID: 'startSummmon',
options: [
{
label: 'Creature',
localID: 'recipe',
registry: ['summoning', 'actions'],
required: true,
type: 'MediaItem',
},
{
getAltCostItems: (recipe: SummoningRecipe) => recipe.nonShardItemCosts,
label: 'Secondary',
localID: 'alt',
recipeOption: 'recipe',
required: true,
showIf: ({recipe}: SingleRecipeData<Summoning>) => Boolean(recipe?.nonShardItemCosts.length),
type: 'AltRecipeCost',
uiKey: ({recipe}: SingleRecipeData<Summoning>) => recipe!.id,
},
],
skillKey: 'summoning',
})
.exec(SingleRecipeAction.altArtisanExec)
);
// import type {Summoning, SummoningRecipe} from 'melvor';
// import {defineAction} from '../../lib/api.mjs';
// import {InternalCategory} from '../../lib/registries/action-registry.mjs';
// import type {AltRecipeData, SingleRecipeData} from '../_common/single-recipe-action.mjs';
// import {SingleRecipeAction} from '../_common/single-recipe-action.mjs';
//
// defineAction(
// SingleRecipeAction
// .new<AltRecipeData<Summoning>, Summoning>({
// category: InternalCategory.START_SKILL,
// localID: 'startSummmon',
// options: [
// {
// label: 'Creature',
// localID: 'recipe',
// registry: ['summoning', 'actions'],
// required: true,
// type: 'MediaItem',
// },
// {
// getAltCostItems: (recipe: SummoningRecipe) => recipe.nonShardItemCosts,
// label: 'Secondary',
// localID: 'alt',
// recipeOption: 'recipe',
// required: true,
// showIf: ({recipe}: SingleRecipeData<Summoning>) => Boolean(recipe?.nonShardItemCosts.length),
// type: 'AltRecipeCost',
// uiKey: ({recipe}: SingleRecipeData<Summoning>) => recipe!.id,
// },
// ],
// skillKey: 'summoning',
// })
// .exec(SingleRecipeAction.altArtisanExec)
// );

0 comments on commit 74a8654

Please sign in to comment.