forked from efcawesome/PissAndShit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPaSGlobalItem.cs
42 lines (41 loc) · 1.51 KB
/
PaSGlobalItem.cs
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
33
34
35
36
37
38
39
40
41
42
using PissAndShit.Items.Armor.DevSets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
namespace PissAndShit
{
class PaSGlobalItem : GlobalItem
{
public override void OpenVanillaBag(string context, Player player, int arg)
{
if(Main.rand.NextBool(15) && Main.hardMode)
{
int devSetType = Main.rand.Next(3);
switch(devSetType)
{
case 0:
player.QuickSpawnItem(ItemType<GodSlimeCostumeHead>(), 1);
player.QuickSpawnItem(ItemType<GodSlimeCostumeBody>(), 1);
player.QuickSpawnItem(ItemType<GodSlimeCostumeLegs>(), 1);
player.QuickSpawnItem(ItemType<FlyingCross>(), 1);
break;
case 1:
player.QuickSpawnItem(ItemType<DevShardionHat>(), 1);
player.QuickSpawnItem(ItemType<DevShardionSuit>(), 1);
player.QuickSpawnItem(ItemType<DevShardionLegs>(), 1);
break;
case 2:
player.QuickSpawnItem(ItemType<ExitiumHead>(), 1);
break;
default:
break;
}
}
}
}
}