Tooltip api

This commit is contained in:
2026-11-05 23:06:37 -03:00
parent 9bc8fd992a
commit 34f001285d
15 changed files with 264 additions and 81 deletions
+3 -2
View File
@@ -157,8 +157,9 @@ export interface SharedContext {
name(id: Id): string;
// the components its json lists and their params, a copy
components(id: Id): Record<Id, unknown>;
// what one sells for, from its "base_sell_value", or undefined if it can't be sold
sell_value(id: Id): number | undefined;
// what one of it sells for with this data, or undefined if it can't be sold: the item's "base_sell_value", and a
// full fluid container's fluid on top, like the server's ctx.items.sell_value
sell_value(id: Id, data?: unknown): number | undefined;
};
// every fluid any mod defines, like the server's and clients' ctx.fluids, without what rules decide
readonly fluids: Pick<FluidApi, "exists" | "same"> & {