-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
211 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/main/java/thaumicboots/item/armor/seasonal/christmas/ItemChristmasArmor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package thaumicboots.item.armor.seasonal.christmas; | ||
|
||
public class ItemChristmasArmor { | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/thaumicboots/item/boots/unique/ItemChristmasBoots.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package thaumicboots.item.boots.unique; | ||
|
||
import thaumicboots.api.IComet; | ||
import thaumicboots.api.ItemBoots; | ||
import thaumicboots.main.utils.CalendarHelper; | ||
import thaumicboots.main.utils.TabThaumicBoots; | ||
|
||
public class ItemChristmasBoots extends ItemBoots implements IComet { | ||
|
||
int modifier = 1; | ||
|
||
public ItemChristmasBoots(ArmorMaterial par2EnumArmorMaterial, int par3, int par4) { | ||
super(par2EnumArmorMaterial, par3, par4); | ||
setCreativeTab(TabThaumicBoots.tabThaumicBoots); | ||
setUnlocalizedName(unlocalisedName); | ||
} | ||
|
||
protected void setBootsData() { | ||
super.setBootsData(); | ||
if (CalendarHelper.isChristmas()) { | ||
visDiscount = 25; | ||
modifier = 12; | ||
} else { | ||
visDiscount = 2; | ||
} | ||
jumpBonus = 0.35D; // 3.5 blocks | ||
tier = 2; | ||
runBonus = 0.165F; | ||
longrunningbonus = 0.012F * modifier; | ||
steadyBonus = true; | ||
negateFall = true; | ||
waterEffects = true; | ||
unlocalisedName = "ItemChristmasBoots"; | ||
iconResPath = "thaumicboots:bootsChristmas"; | ||
armorResPath = "thaumicboots:model/boots_christmas.png"; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/main/java/thaumicboots/item/boots/unique/ItemSeasonBoots.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package thaumicboots.item.boots.unique; | ||
|
||
import thaumicboots.api.ItemBoots; | ||
import thaumicboots.main.utils.CalendarHelper; | ||
import thaumicboots.main.utils.TabThaumicBoots; | ||
|
||
public class ItemSeasonBoots extends ItemBoots { | ||
|
||
int modifier = 1; | ||
|
||
public ItemSeasonBoots(ArmorMaterial par2EnumArmorMaterial, int par3, int par4) { | ||
super(par2EnumArmorMaterial, par3, par4); | ||
setCreativeTab(TabThaumicBoots.tabThaumicBoots); | ||
setUnlocalizedName(unlocalisedName); | ||
} | ||
|
||
protected void setBootsData() { | ||
super.setBootsData(); | ||
jumpBonus = 0.35D; // 3.5 blocks | ||
tier = 2; | ||
runBonus = 0.165F; | ||
steadyBonus = true; | ||
negateFall = true; | ||
waterEffects = true; | ||
unlocalisedName = "ItemSeasonBoots"; | ||
iconResPath = "thaumicboots:bootsArcanium"; | ||
armorResPath = "thaumicboots:model/boots_arcanium.png"; | ||
visDiscount = 3; | ||
if (CalendarHelper.isChristmas()) { | ||
iconResPath = "thaumicboots:bootsChristmas"; | ||
armorResPath = "thaumicboots:model/boots_christmas.png"; | ||
visDiscount = 12; | ||
modifier = 12; | ||
} | ||
longrunningbonus = 0.003F * modifier; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package thaumicboots.main.utils; | ||
|
||
import java.util.Calendar; | ||
|
||
public class CalendarHelper { | ||
|
||
private static final int month = Calendar.getInstance().get(Calendar.MONTH) + 1; | ||
private static boolean isIrish = false; | ||
private static boolean isEaster = false; | ||
private static boolean isFree = false; | ||
private static boolean isChristmas = false; | ||
|
||
public static void calendar() { | ||
switch (month) { | ||
case 3: | ||
isIrish = true; | ||
case 4: | ||
isEaster = true; | ||
break; | ||
case 7: | ||
isFree = true; // AMERICA #1 BABY | ||
break; | ||
case 12: | ||
isChristmas = true; | ||
break; | ||
} | ||
} | ||
|
||
public static boolean isIrish() { | ||
return isIrish; | ||
} | ||
|
||
public static boolean isEaster() { | ||
return isEaster; | ||
} | ||
|
||
public static boolean isFree() { | ||
return isFree; | ||
} | ||
|
||
public static boolean isChristmas() { | ||
return isChristmas; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.49 KB
src/main/resources/assets/thaumicboots/textures/items/bootsChristmas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-1.37 KB
src/main/resources/assets/thaumicboots/textures/model/[[JACKPOT]].png
Binary file not shown.
Oops, something went wrong.