(function(v,i,t,a,c,u) {
if (i = $dataItems[+v || 0]) {
u = $gameParty.members()[0];
a = new Game_Action(u);
a.setItemObject(i);
t = i.scope === 7 ? [u] : a.makeTargets();
for (n of t) c = c || a.testApply(n);
if (u.canUse(i) && (i.scope === 0 || c)) {
u.useItem(i);
for (n of t) for (var m = a.numRepeats(); m--;) a.apply(n);
a.applyGlobal();
}}})($gameVariables.value(41));