mirror of
https://github.com/asphyxia-core/plugins.git
synced 2026-10-09 06:59:51 +03:00
IIDX: Removed shop.savename as not working as intented
This commit is contained in:
@@ -114,3 +114,4 @@ Changelogs
|
|||||||
- Fixed where shop name always displayed as "CORE" instead of saved one
|
- Fixed where shop name always displayed as "CORE" instead of saved one
|
||||||
- Fixed where rlist STEP UP achieve value was fixed value instead of saved one
|
- Fixed where rlist STEP UP achieve value was fixed value instead of saved one
|
||||||
- Fixed where fcombo isn't saving (Resort Anthem)
|
- Fixed where fcombo isn't saving (Resort Anthem)
|
||||||
|
- Removed shop.savename as not working as intented.
|
||||||
@@ -10,7 +10,7 @@ export const shopgetname: EPR = async (info, data, send) => {
|
|||||||
await DB.Insert<shop_data>({
|
await DB.Insert<shop_data>({
|
||||||
collection: "shop_data",
|
collection: "shop_data",
|
||||||
|
|
||||||
opname: "CORE",
|
opname: "CORE",
|
||||||
pid: 57,
|
pid: 57,
|
||||||
cls_opt: 0,
|
cls_opt: 0,
|
||||||
});
|
});
|
||||||
@@ -18,12 +18,13 @@ export const shopgetname: EPR = async (info, data, send) => {
|
|||||||
return send.object(
|
return send.object(
|
||||||
K.ATTR({
|
K.ATTR({
|
||||||
status: "0",
|
status: "0",
|
||||||
opname: "CORE",
|
opname: "CORE",
|
||||||
pid: "57",
|
pid: "57",
|
||||||
cls_opt: "0",
|
cls_opt: "0",
|
||||||
hr: "0",
|
hr: "0",
|
||||||
mi: "0",
|
mi: "0",
|
||||||
})
|
}),
|
||||||
|
{ encoding: "shift_jis" }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,24 +36,13 @@ export const shopgetname: EPR = async (info, data, send) => {
|
|||||||
cls_opt: String(shop_data.cls_opt),
|
cls_opt: String(shop_data.cls_opt),
|
||||||
hr: "0",
|
hr: "0",
|
||||||
mi: "0",
|
mi: "0",
|
||||||
})
|
}),
|
||||||
|
{ encoding: "shift_jis" }
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const shopsavename: EPR = async (info, data, send) => {
|
export const shopsavename: EPR = async (info, data, send) => {
|
||||||
await DB.Upsert<shop_data>(
|
// removed saving code as opname attribute being sent as shift_jis but KDataReader read as utf-8 //
|
||||||
{
|
|
||||||
collection: "shop_data",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
$set: {
|
|
||||||
opname: $(data).attr().opname,
|
|
||||||
pid: parseInt($(data).attr().pid),
|
|
||||||
cls_opt: parseInt($(data).attr().cls_opt),
|
|
||||||
},
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
return send.success();
|
return send.success();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user