-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTileExplore.cs
More file actions
29 lines (26 loc) · 931 Bytes
/
TileExplore.cs
File metadata and controls
29 lines (26 loc) · 931 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
using System;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Expeditions
{
public class TileExplore : GlobalTile
{
public override void KillTile(int i, int j, int type, ref bool fail, ref bool effectOnly, ref bool noItem)
{
foreach (ModExpedition me in Expeditions.GetExpeditionsList())
{
if (i == Player.tileTargetX && j == Player.tileTargetY && !fail)
{
me.OnKillTile(i, j, type, Main.LocalPlayer,
ref me.expedition.condition1Met,
ref me.expedition.condition2Met,
ref me.expedition.condition3Met,
me.expedition.conditionCounted >= me.expedition.conditionCountedMax
);
}
}
}
}
}