-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEasyNPC.cs
More file actions
32 lines (30 loc) · 860 Bytes
/
EasyNPC.cs
File metadata and controls
32 lines (30 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace EasyCellPhone
{
public class EasyNPC : GlobalNPC
{
private static readonly short[] MechanicExtraItems =
{
ItemID.MagicMirror,
ItemID.DepthMeter,
ItemID.Compass,
ItemID.Radar,
ItemID.TallyCounter,
ItemID.LifeformAnalyzer,
ItemID.DPSMeter,
ItemID.Stopwatch,
ItemID.MetalDetector,
ItemID.FishermansGuide,
ItemID.WeatherRadio,
ItemID.Sextant
};
public override void SetupShop(int type, Chest shop, ref int nextSlot)
{
if (type == NPCID.Mechanic)
foreach (short item in MechanicExtraItems)
shop.item[nextSlot++].SetDefaults(item);
}
}
}