Piscopancer's Healing Campfires is an addon for a game S.T.A.L.K.E.R. Anomaly 1.5.2. Standing near lit campfires warms body and treats wounds, causing character's health to restore. The fashion in which health is restored can be configured via MCM.
This project uses typescript-to-lua package to transpile TypeScript code to Lua, which can be used by the game after slight tweaking within a custom function for transpilation.
bun run build,- Archive build folder and treat it as an addon.
-
Every file in
/src/scriptsshould have a corresponding output.scriptfile in/build/gamedata/scripts. -
TypeScript files under
/src/scriptscannot be modules - they cannotexportorimportfrom other files. For data interchange between scripts modules (vars) intypes.d.tsshould be declared, each module having the name of the file in/build/gamedata/scripts. E.g.// types.d.ts // this is a module with `defaultConfig` that you can use globally on other scripts var pcprs_healing_campfires_mcm: { defaultConfig: { // ... } }
-
Variables and functions should be global for easy access, FUCK the rules, there are none. Custom function for transpilation takes care of it.
