Skip to content

Conversation

@ProphetLamb
Copy link

@ProphetLamb ProphetLamb commented Nov 6, 2022

Description

Adds support for the Wannabe Edgerunner mod.
The system counts "humanity" and inflicts debuffs, if a certain threshold is reached.

Humanity is computed by subtracting the weighted sum of installed implants added to the currentHumanityDamage (source: save) from the base humanity (source: r6\tweaks\wannabeEdgerunner.yaml).

This PR allows modifying the damage to humanity.

Problem

Currently, when loading a save with the mod the following msgbox is shown:

---------------------------
error
---------------------------
couldn't load node_t ScriptableSystemsContainer
reason: CObject::serialize_in: serial field Edgerunning.System.EdgerunningSystem::currentHumanityDamage is missing from bp fields
---------------------------
OK   
---------------------------

Solution

Add the Wannabe Edgerunner object to CObjectBPs.json:

"Edgerunning.System.EdgerunningSystem": {
    "ctypename": "edgerunningSystemEdgerunningSystem",
    "props": [
      {
        "ctypename": "Int32",
        "name": "currentHumanityDamage"
      }
    ]
  }

Result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant