[Lua] Trouble Overwriting Artifacts.lua: Rewarding two artifacts instead of one

Galgus

Emperor
Joined
Aug 22, 2012
Messages
1,705
EDIT

Ryika solved the problem on Reddit.

I had the file as Content in InGameUiAddin while also setting Import into VHS to True, which made two copies of the file.

__________________________

My recent Artifacts Overhaul mod has a bug in the Artifacts.lua file, which overwrites the file of the same name in the base game to disable Artifact spawns from Resource Pods and Alien Nests while guaranteeing them from non-Satellite Expeditions.

It does all of that properly, but it gives the player two Artifacts (of the proper type) per expedition instead of one, and I don't know why and I don't recognize anything relevant in the logs.

I included the mod's Artifacts.lua file as an .txt file so it would upload.

My changed are marked by Galgus Change comments.

Any help would be appreciated.
 

Attachments

  • Artifacts.txt
    11.7 KB · Views: 57
Last edited:
Top Bottom