inkyblackness / hacked

Graphical editor for System Shock 1 (1994 and compatible)
Other
86 stars 7 forks source link

TreasureType Editing Functionality #66

Closed XLightningStormL closed 9 months ago

XLightningStormL commented 11 months ago

Basically TreasureTypes are what System Shock 1 uses for randomized Loot Pools for certain corpses and enemies. An example is the Cyborg Assassin loot pool includes stuff like Teflon Rounds, Needles, and rarely Tranqs.

Currently there isn't any way to actually modify these pools, so I am unable to add say Riot Gun slugs to the Assassin loot pools, or remove EMP Grenades from the Cyber Enforcer's loot pool (these are just examples)

dertseha commented 10 months ago

Hi there, thank you for your message! Unfortunately, the loot tables and their distribution is hardcoded in the engine. They are not sitting in the data files, they are encoded in the source. For reference, see AI.C from the original source - or, a little easier to read online, from the Schockolate project, treasure_table.

In theory, if the engine maintainers would agree on a format, we could implement a parameterized table from a data file, however I guess the chances are slim.