You are viewing a potentially older version of this package. View all versions.
Dinorush-InheritanceDataBlocks-1.1.5 icon

InheritanceDataBlocks

Allows datablocks to inherit fields from another.

Date uploaded a month ago
Version 1.1.5
Download link Dinorush-InheritanceDataBlocks-1.1.5.zip
Downloads 47
Dependency string Dinorush-InheritanceDataBlocks-1.1.5

This mod requires the following mods to function

BepInEx-BepInExPack_GTFO-3.2.1 icon
BepInEx-BepInExPack_GTFO

BepInEx pack for GTFO. Preconfigured and includes Unity Base DLLs.

Preferred version: 3.2.1
GTFOModding-InjectLib-1.0.2 icon
GTFOModding-InjectLib

Dauda wants to inject things

Preferred version: 1.0.2

README

InheritanceDataBlocks

Allows developers to specify an additional field in any vanilla datablock, parentID. This causes the block to pull data from the given ID to fill any non-specified fields.

Note for Partial Data users

InheritanceDataBlocks is only compatible with the AWOPartialDataFixer version of partial data. On Flow's (normal) version, it will only work for vanilla datablocks and datablocks cannot use text IDs.

Example

GameData_ArchetypeDataBlock_bin.json

// Creates a new archetype using values from ID 5
// but with Damage and DefaultClipSize changed
{
    "Damage": 4,
    "DefaultClipSize": 50,
    "parentID": 5,
    "name": "Assault Rifle Upgraded",
    "persistentID": 205
},
// Creates a new archetype using values from ID 205 (which borrows from ID 5)
// but with Damage and DefaultReloadTime changed
{
    "Damage": 5,
    "DefaultReloadTime": 1.0,
    "parentID": 205,
    "name": "Assault Rifle Upgraded Stage 2",
    "persistentID": 305
}

CHANGELOG

v1.1.5

  • Removed some unnecessary code

v1.1.4

  • Removed debug printing left in on accident

v1.1.3

  • Fixed an issue where a block using parentID would ignore the last field.

v1.1.2

  • Exposed all root functions directly in API
  • Modified patches slightly to be more compatible with other mods

v1.1.1

  • Exposed DebugPrint function directly in API
  • Some code refactoring

v1.1.0

  • Added API for plugin developers
  • Added missing dependency

v1.0.0

  • Initial Release