Even More Modifiers
1.0.0.0
A mod for rolling various bonus stats on items
Main Page
Related Pages
Packages
Classes
Files
File List
File Members
LootRecipeGlobalNPC.cs
Go to the documentation of this file.
1
using
Loot
.
Api
.
Cubes
;
2
using
Terraria
;
3
using
Terraria
.ModLoader;
4
5
namespace
Loot
.Soulforging
6
{
7
internal
class
LootRecipeGlobalNPC :
GlobalItem
8
{
9
public
override
bool
OnPickup
(Item item, Player player)
10
{
11
if
(item.modItem is
MagicalCube
cube)
12
{
13
ModContent.GetInstance<LootEssenceWorld>().UnlockCube(cube.item.type);
14
}
15
// TODO if item is soul, unlock soulforging
16
return
base.OnPickup(item, player);
17
}
18
}
19
}
Loot.Api.Core.ModifierContextMethod.OnPickup
Loot
Loot.Api
GlobalItem
Loot.Api.Cubes.MagicalCube
Defines a magical cube A magical cube is used to change modifiers on an item
Definition:
MagicalCube.cs:12
Terraria
Loot.Api.Cubes
Definition:
MagicalCube.cs:6
Soulforging
LootRecipeGlobalNPC.cs
Generated on Sat Apr 18 2020 16:45:40 for Even More Modifiers by
1.8.11