Skip to content

Commit

Permalink
7.0 small lib updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ClayLivince committed Jun 28, 2024
1 parent 984ec55 commit 93beff7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SaintCoinach/IO/PackIdentifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public struct PackIdentifier {
{ "ex1", 0x01 },
{ "ex2", 0x02 },
{ "ex3", 0x03 },
{ "ex4", 0x04 }
{ "ex4", 0x04 },
{ "ex5", 0x05 }
};
public static readonly Dictionary<byte, string> KeyToExpansionMap = ExpansionToKeyMap.ToDictionary(_ => _.Value, _ => _.Key);
#endregion
Expand Down
1 change: 1 addition & 0 deletions SaintCoinach/Text/TagType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public enum TagType : byte {
InstanceContent = 0x40, // Presumably so it can be clicked?
UIForeground = 0x48,
UIGlow = 0x49,
RubyCharaters = 0x4A, // Mostly used on Japanese, which means
ZeroPaddedValue = 0x50,
Unknown60 = 0x60, // TODO: Used as prefix in Gold Saucer announcements.
}
Expand Down
2 changes: 1 addition & 1 deletion SaintCoinach/Xiv/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class Item : ItemBase {
/// Gets a value indicating whether the current item is dyeable.
/// </summary>
/// <value>A value indicating whether the current item is dyeable.</value>
public bool IsDyeable { get { return AsBoolean("IsDyeable"); } }
public bool IsDyeable { get { return AsInt16("DyeCount") > 0; } }

/// <summary>
/// Gets a value indicating whether the current item is collectable.
Expand Down
1 change: 1 addition & 0 deletions SaintCoinach/Xiv/Items/Equipment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public int GetModelCharacterType() {
case 16: return 1501; // Hrothgar male
case 17: return 1801; // Viera female
case 18: return 1701; // Viera male
case 19: return 1601; // Hrothgar female
default:
throw new NotImplementedException();
}
Expand Down
2 changes: 1 addition & 1 deletion SaintCoinach/Xiv/Recipe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public Recipe(IXivSheet sheet, IRelationalRow sourceRow) : base(sheet, sourceRow
/// </summary>
/// <returns>An array of <see cref="RecipeIngredient" />s used in the current recipe.</returns>
private RecipeIngredient[] BuildIngredients() {
const int MaterialCount = 10;
const int MaterialCount = 8;
const int CrystalCategory = 59;

var ingredients = new List<RecipeIngredient>();
Expand Down

0 comments on commit 93beff7

Please sign in to comment.