mirror of
https://github.com/chev2/terraria-mods.git
synced 2025-10-30 08:11:37 +00:00
- Formatted code a bit - Updated description to include changelog section - Added basic config to allow users to turn off the lights for each of the two tile types individually
25 lines
795 B
C#
25 lines
795 B
C#
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace LifeSourcesLight
|
|
{
|
|
public class LifeSourcesLightModSystem : ModSystem
|
|
{
|
|
private LifeSourcesLightConfig _configInstance;
|
|
|
|
public LifeSourcesLightModSystem() : base()
|
|
{
|
|
_configInstance = ModContent.GetInstance<LifeSourcesLightConfig>();
|
|
}
|
|
|
|
public void ApplySettings()
|
|
{
|
|
LifeSourcesLight._enableHeartCrystalLight = _configInstance.EnableHeartCrystalLight;
|
|
LifeSourcesLight._enableLifeFruitLight = _configInstance.EnableLifeFruitLight;
|
|
|
|
Main.tileLighted[TileID.Heart] = LifeSourcesLight._enableHeartCrystalLight;
|
|
Main.tileLighted[TileID.LifeFruit] = LifeSourcesLight._enableLifeFruitLight;
|
|
}
|
|
}
|
|
}
|