Juice sell price
This commit is contained in:
@@ -43,6 +43,8 @@ export interface FluidRules {
|
||||
name?(data: unknown): string | undefined;
|
||||
// a color like "#c42d39"
|
||||
color?(data: unknown): string | undefined;
|
||||
// what 1000 mB of it is worth when sold, 0 or more and not always whole
|
||||
sell_value?(data: unknown): number | undefined;
|
||||
}
|
||||
|
||||
// the registries tags are for, see docs/modding/resources/tags.md
|
||||
@@ -112,6 +114,8 @@ 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;
|
||||
};
|
||||
readonly fluids: {
|
||||
// the rules of one of the mod's fluids, which the server and every client name and color it by
|
||||
|
||||
Reference in New Issue
Block a user