Single module modding
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2026 Paula Wisnievski
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
// fluids with their data (see FluidVariant in mod_api/shared.ts) and the rules shared scripts give them, which name,
|
||||
// fluids with their data (see FluidVariant in mod_api/shared.ts) and the rules shared phases give them, which name,
|
||||
// color and value a fluid by its data. each side has its own FluidRules from the same scripts, so the server's tooltips
|
||||
// and a client's drawing agree
|
||||
import type { FluidApi, FluidRules as Rules, FluidVariant } from "./mod_api/shared.ts";
|
||||
@@ -44,7 +44,7 @@ export class FluidRules {
|
||||
return this.#ask(fluid, "sell_value", "a number of 0 or more", valid) ?? json.base_sell_value;
|
||||
}
|
||||
|
||||
// ctx.fluids for server and client scripts
|
||||
// ctx.fluids for server and client phases
|
||||
api(): FluidApi {
|
||||
return {
|
||||
ids: () => EverythingRegistry.entries("fluids").map(([id]) => id),
|
||||
|
||||
Reference in New Issue
Block a user