Skip to content

Commit

Permalink
Renamed "Savage Axe Duration (Impact Phial)" param. (Thanks Chromus.)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Brutsche committed Dec 3, 2023
1 parent cbbdb05 commit 22f71fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion 010 Templates/w09p.bt
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ Action_Param_5 Action_Param_5_<name="Action Param 5">;
// W09p Params (18)
float Savage_Axe_Duration_Elemental_Phial_<name="Savage Axe Duration (Elemental Phial) (float)">;
float Unk_190<name="Unk 190 (float)">;
float Savage_Axe_Duration_Multiplier_Impact_Phial_<name="Savage Axe Duration Multiplier (Impact Phial) (float)">;
float Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration_<name="Savage Axe Duration (Impact Phial) (Inverse Multiplier of Elemental Phial Duration) (float)">;
float Unk_192<name="Unk 192 (float)">;
float Unk_193<name="Unk 193 (float)">;
uint Savage_Axe_Tick_Sharpness_Use_on_N_Hit<name="Savage Axe Tick Sharpness Use on N Hit (uint)">;
32 changes: 16 additions & 16 deletions Generated/MHW_Editor/Structs/Weapons/Wp09Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5645,23 +5645,23 @@ public virtual float Unk_190 {
[DisplayName("Offset")]
public long Unk_190_offset { get; private set; }

protected float Savage_Axe_Duration_Multiplier_Impact_Phial__raw;
public const string Savage_Axe_Duration_Multiplier_Impact_Phial__displayName = "Savage Axe Duration Multiplier (Impact Phial)";
public const int Savage_Axe_Duration_Multiplier_Impact_Phial__sortIndex = 150;
[SortOrder(Savage_Axe_Duration_Multiplier_Impact_Phial__sortIndex)]
[DisplayName(Savage_Axe_Duration_Multiplier_Impact_Phial__displayName)]
public virtual float Savage_Axe_Duration_Multiplier_Impact_Phial_ {
get => Savage_Axe_Duration_Multiplier_Impact_Phial__raw;
protected float Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__raw;
public const string Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__displayName = "Savage Axe Duration (Impact Phial) (Inverse Multiplier of Elemental Phial Duration)";
public const int Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__sortIndex = 150;
[SortOrder(Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__sortIndex)]
[DisplayName(Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__displayName)]
public virtual float Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration_ {
get => Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__raw;
set {
if (Savage_Axe_Duration_Multiplier_Impact_Phial__raw == value) return;
Savage_Axe_Duration_Multiplier_Impact_Phial__raw = value;
ChangedItems.Add(nameof(Savage_Axe_Duration_Multiplier_Impact_Phial_));
OnPropertyChanged(nameof(Savage_Axe_Duration_Multiplier_Impact_Phial_));
if (Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__raw == value) return;
Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__raw = value;
ChangedItems.Add(nameof(Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration_));
OnPropertyChanged(nameof(Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration_));
}
}

[DisplayName("Offset")]
public long Savage_Axe_Duration_Multiplier_Impact_Phial__offset { get; private set; }
public long Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__offset { get; private set; }

protected float Unk_192_raw;
public const string Unk_192_displayName = "Unk 192";
Expand Down Expand Up @@ -5735,8 +5735,8 @@ public static W09p_Params_18_ LoadData(BinaryReader reader, ulong i) {
data.Savage_Axe_Duration_Elemental_Phial__raw = reader.ReadSingle();
data.Unk_190_offset = reader.BaseStream.Position;
data.Unk_190_raw = reader.ReadSingle();
data.Savage_Axe_Duration_Multiplier_Impact_Phial__offset = reader.BaseStream.Position;
data.Savage_Axe_Duration_Multiplier_Impact_Phial__raw = reader.ReadSingle();
data.Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__offset = reader.BaseStream.Position;
data.Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__raw = reader.ReadSingle();
data.Unk_192_offset = reader.BaseStream.Position;
data.Unk_192_raw = reader.ReadSingle();
data.Unk_193_offset = reader.BaseStream.Position;
Expand All @@ -5749,7 +5749,7 @@ public static W09p_Params_18_ LoadData(BinaryReader reader, ulong i) {
public void WriteData(BinaryWriter writer) {
writer.Write(Savage_Axe_Duration_Elemental_Phial__raw);
writer.Write(Unk_190_raw);
writer.Write(Savage_Axe_Duration_Multiplier_Impact_Phial__raw);
writer.Write(Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__raw);
writer.Write(Unk_192_raw);
writer.Write(Unk_193_raw);
writer.Write(Savage_Axe_Tick_Sharpness_Use_on_N_Hit_raw);
Expand All @@ -5759,7 +5759,7 @@ public ObservableCollection<MultiStructItemCustomView> GetCustomView() {
return new ObservableCollection<MultiStructItemCustomView> {
new MultiStructItemCustomView(this, "Savage Axe Duration (Elemental Phial)", "Savage_Axe_Duration_Elemental_Phial_", "Savage_Axe_Duration_Elemental_Phial__offset"),
new MultiStructItemCustomView(this, "Unk 190", "Unk_190", "Unk_190_offset"),
new MultiStructItemCustomView(this, "Savage Axe Duration Multiplier (Impact Phial)", "Savage_Axe_Duration_Multiplier_Impact_Phial_", "Savage_Axe_Duration_Multiplier_Impact_Phial__offset"),
new MultiStructItemCustomView(this, "Savage Axe Duration (Impact Phial) (Inverse Multiplier of Elemental Phial Duration)", "Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration_", "Savage_Axe_Duration_Impact_Phial_Inverse_Multiplier_of_Elemental_Phial_Duration__offset"),
new MultiStructItemCustomView(this, "Unk 192", "Unk_192", "Unk_192_offset"),
new MultiStructItemCustomView(this, "Unk 193", "Unk_193", "Unk_193_offset"),
new MultiStructItemCustomView(this, "Savage Axe Tick Sharpness Use on N Hit", "Savage_Axe_Tick_Sharpness_Use_on_N_Hit", "Savage_Axe_Tick_Sharpness_Use_on_N_Hit_offset"),
Expand Down
2 changes: 1 addition & 1 deletion MHW-Generator/Weapons/Wp09Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public MultiStruct Generate() { // .w09p
new MhwMultiStructData.StructData($"W{N}p Params ({++paramIndex})", new List<MhwMultiStructData.Entry> {
new MhwMultiStructData.Entry("Savage Axe Duration (Elemental Phial)", typeof(float)),
new MhwMultiStructData.Entry($"Unk {unkIndex += 2}", typeof(float)),
new MhwMultiStructData.Entry("Savage Axe Duration Multiplier (Impact Phial)", typeof(float)),
new MhwMultiStructData.Entry("Savage Axe Duration (Impact Phial) (Inverse Multiplier of Elemental Phial Duration)", typeof(float)),
new MhwMultiStructData.Entry($"Unk {unkIndex += 2}", typeof(float)),
new MhwMultiStructData.Entry($"Unk {++unkIndex}", typeof(float)),
new MhwMultiStructData.Entry("Savage Axe Tick Sharpness Use on N Hit", typeof(uint))
Expand Down

0 comments on commit 22f71fd

Please sign in to comment.