Skip to content

Commit

Permalink
Virtualize the functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed Feb 6, 2025
1 parent be6760b commit f3e3d5d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Armor/BaseArmor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ public override int Hue
}
}

public int OnCraft(
public virtual int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,
CraftItem craftItem, int resHue
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public int UsesRemaining
}
}

public int OnCraft(
public virtual int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,
CraftItem craftItem, int resHue
)
Expand Down
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Skill Items/Tools/BaseTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public ToolQuality Quality

private bool ShowUsesRemaining { get; set; } = true;

public int OnCraft(
public virtual int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,
CraftItem craftItem, int resHue
)
Expand Down
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Weapons/Axes/Pickaxe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public Pickaxe() : base(0xE86)

public override WeaponAnimation DefAnimation => WeaponAnimation.Slash1H;

public int OnCraft(
public override int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,
CraftItem craftItem, int resHue
)
Expand Down
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Weapons/BaseWeapon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ public CraftResource Resource
[SerializableFieldDefault(23)]
private CraftResource ResourceDefaultValue() => CraftResource.Iron;

public int OnCraft(
public virtual int OnCraft(
int quality, bool makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool,
CraftItem craftItem, int resHue
)
Expand Down

0 comments on commit f3e3d5d

Please sign in to comment.