Skip to content

Piscopancer's Healing Campfires is an addon for a game S.T.A.L.K.E.R. Anomaly 1.5.2

Notifications You must be signed in to change notification settings

piscopancer/pcprs_healing_campfires

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piscopancer's Healing Campfires

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.

Project

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.

Preparation

  1. bun run build,
  2. Archive build folder and treat it as an addon.

Rules of Typescript to Lua transpilation

  • Every file in /src/scripts should have a corresponding output .script file in /build/gamedata/scripts.

  • TypeScript files under /src/scripts cannot be modules - they cannot export or import from other files. For data interchange between scripts modules (vars) in types.d.ts should 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.

About

Piscopancer's Healing Campfires is an addon for a game S.T.A.L.K.E.R. Anomaly 1.5.2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published