mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
code style improvements
This commit is contained in:
+6
-9
@@ -10,19 +10,16 @@ public class KatanaRedo : GlobalItem {
|
|||||||
|
|
||||||
public override void ModifyTooltips(Item item, List<TooltipLine> tooltips)
|
public override void ModifyTooltips(Item item, List<TooltipLine> tooltips)
|
||||||
{
|
{
|
||||||
if (item.type == ItemID.Katana) {
|
if (item.type != ItemID.Katana) return;
|
||||||
tooltips.Insert(5, new TooltipLine(YHTMod.GetInstance(), "flavor" , "Nothing personel kid."));
|
tooltips.Insert(5, new TooltipLine(YHTMod.GetInstance(), "flavor" , "Nothing personel kid."));
|
||||||
tooltips.Insert(6, new TooltipLine(YHTMod.GetInstance(), "usage" , "Right click to teleport behind them."));
|
tooltips.Insert(6, new TooltipLine(YHTMod.GetInstance(), "usage" , "Right click to teleport behind them."));
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool AltFunctionUse(Item item, Player player) {
|
public override bool AltFunctionUse(Item item, Player player) {
|
||||||
if (item.type == ItemID.Katana) {
|
if (item.type != ItemID.Katana) {
|
||||||
return true;
|
return base.AltFunctionUse(item, player);
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
return base.AltFunctionUse(item, player);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool? UseItem(Item item, Player player) {
|
public override bool? UseItem(Item item, Player player) {
|
||||||
|
|||||||
Reference in New Issue
Block a user