Add For Sale Sign into searches

This commit is contained in:
1F616EMO 2024-06-05 18:50:22 +08:00
parent 134eee104f
commit cad800fbee
No known key found for this signature in database
GPG Key ID: EF52EFA8E05859B2
2 changed files with 7 additions and 0 deletions

View File

@ -31,6 +31,7 @@ function search(query){
searchFor("label", "text", query),
searchFor("digiterm", "display_text", query),
searchFor("digilinelcd", "text", query)
searchFor("um_area_forsale", "description", query)
];
Promise.all(prom_list)

View File

@ -88,6 +88,12 @@ export default {
]);
}
// For Sale Sign
if (obj.type == "um_area_forsale"){
description = m("span", obj.attributes.description || "No Description");
type = m("img", { src: "pics/um_area_forsale_sign_alpha.png" });
}
//shop
if (obj.type == "shop") {
if (obj.attributes.stock == 0){