mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-30 15:08:43 +00:00
commit
8d6019fe8f
@ -48,6 +48,7 @@ public class ItemData extends GenshinResource {
|
|||||||
private int WeaponBaseExp;
|
private int WeaponBaseExp;
|
||||||
private int StoryId;
|
private int StoryId;
|
||||||
private int AvatarPromoteId;
|
private int AvatarPromoteId;
|
||||||
|
private int AwakenMaterial;
|
||||||
private int[] AwakenCosts;
|
private int[] AwakenCosts;
|
||||||
private int[] SkillAffix;
|
private int[] SkillAffix;
|
||||||
private WeaponProperty[] WeaponProp;
|
private WeaponProperty[] WeaponProp;
|
||||||
@ -160,6 +161,10 @@ public class ItemData extends GenshinResource {
|
|||||||
return WeaponBaseExp;
|
return WeaponBaseExp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getAwakenMaterial() {
|
||||||
|
return AwakenMaterial;
|
||||||
|
}
|
||||||
|
|
||||||
public int[] getAwakenCosts() {
|
public int[] getAwakenCosts() {
|
||||||
return AwakenCosts;
|
return AwakenCosts;
|
||||||
}
|
}
|
||||||
|
@ -438,9 +438,15 @@ public class InventoryManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (weapon.getItemData().getAwakenMaterial() == 0) {
|
||||||
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) {
|
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemId() != feed.getItemId()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
if (weapon.getItemType() != ItemType.ITEM_WEAPON || weapon.getItemData().getAwakenMaterial() != feed.getItemId()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (weapon.getRefinement() >= 4 || weapon.getAffixes() == null || weapon.getAffixes().size() == 0) {
|
if (weapon.getRefinement() >= 4 || weapon.getAffixes() == null || weapon.getAffixes().size() == 0) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user