mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 00:47:32 +00:00
Rewrote ModAttack to accept multiple items
This commit is contained in:
1 parent
977287e440
commit
086cc97ddc
12 files changed
+152
-50
No files matched your search
@@ -63,7 +63,6 @@ import tconstruct.util.player.TPlayerStats;
|
||||
public class TEventHandler
|
||||
{
|
||||
Random random = new Random();
|
||||
private Object evt;
|
||||
|
||||
/* Crafting */
|
||||
@ForgeSubscribe
|
||||
@@ -535,12 +534,12 @@ public class TEventHandler
|
||||
|
||||
if (evt.Name == "crystalQuartz")
|
||||
{
|
||||
ToolBuilder.instance.registerToolMod(new ModAttack("Quartz", new ItemStack[] { evt.Ore }, 11, 2));
|
||||
TRepo.modAttack.addStackToMatchList(evt.Ore, 2);
|
||||
}
|
||||
|
||||
else if (evt.Name == "crystalCerusQuartz")
|
||||
{
|
||||
ToolBuilder.instance.registerToolMod(new ModAttack("Quartz", new ItemStack[] { evt.Ore }, 11, 24));
|
||||
TRepo.modAttack.addStackToMatchList(evt.Ore, 24);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user