Skip to content

Commit

Permalink
canBeDiscardedByPlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Jul 17, 2024
1 parent 4b6aa10 commit ca0bfd0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Winch/Serialization/Item/EngineItemDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class EngineItemDataConverter : SpatialItemDataConverter
{ "itemTypeIcon", new(TextureUtil.GetSprite("EngineIcon"), null) },
{ "damageMode", new(DamageMode.OPERATION, null) },
{ "moveMode", new(MoveMode.INSTALL, null) },
{ "canBeDiscardedByPlayer", new(true, null) },
{ "canBeSoldInBulkAction", new(false, null) },
{ "itemType", new(ItemType.EQUIPMENT, null) },
{ "itemSubtype", new(ItemSubtype.ENGINE, null) },
Expand Down
1 change: 1 addition & 0 deletions Winch/Serialization/Item/FishItemDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class FishItemDataConverter : HarvestableItemDataConverter
{ "harvestMinigameType", new( HarvestMinigameType.FISHING_RADIAL, null) },
{ "itemType", new(ItemType.GENERAL, null) },
{ "itemSubtype", new(ItemSubtype.FISH, null) },
{ "canBeDiscardedByPlayer", new(true, null) },
{ "minSizeCentimeters", new( 0f, o => float.Parse(o.ToString())) },
{ "maxSizeCentimeters", new( 0f, o => float.Parse(o.ToString())) },
{ "aberrations", new( new List<string>(), o => DredgeTypeHelpers.ParseStringList((JArray)o)) },
Expand Down
1 change: 1 addition & 0 deletions Winch/Serialization/Item/LightItemDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class LightItemDataConverter : SpatialItemDataConverter
{ "itemTypeIcon", new(TextureUtil.GetSprite("LightIcon"), null) },
{ "damageMode", new(DamageMode.OPERATION, null) },
{ "moveMode", new(MoveMode.INSTALL, null) },
{ "canBeDiscardedByPlayer", new(true, null) },
{ "canBeSoldInBulkAction", new(false, null) },
{ "itemType", new(ItemType.EQUIPMENT, null) },
{ "itemSubtype", new(ItemSubtype.LIGHT, null) },
Expand Down
2 changes: 1 addition & 1 deletion Winch/Serialization/Item/RelicItemDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class RelicItemDataConverter : HarvestableItemDataConverter
{ "itemType", new(ItemType.GENERAL, null) },
{ "itemSubtype", new(ItemSubtype.RELIC, null) },
{ "canBeDiscarded", new(true, null) },
{ "canBeDiscardedByPlayer", new(true, null) },
{ "canBeDiscardedByPlayer", new(false, null) },
{ "canBeSoldByPlayer", new(false, null) },
{ "canBeSoldInBulkAction", new(true, null) },
{ "harvestPOICategory", new(HarvestPOICategory.RELIC, null) },
Expand Down
1 change: 1 addition & 0 deletions Winch/Serialization/Item/RodItemDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class RodItemDataConverter : HarvesterItemDataConverter
{ "itemTypeIcon", new( TextureUtil.GetSprite("RodIcon"), null) },
{ "damageMode", new(DamageMode.OPERATION, null) },
{ "moveMode", new(MoveMode.INSTALL, null) },
{ "canBeDiscardedByPlayer", new(true, null) },
{ "canBeSoldInBulkAction", new(false, null) },
{ "itemSubtype", new(ItemSubtype.ROD, null) },
{ "fishingSpeedModifier", new(1f, o => float.Parse(o.ToString())) },
Expand Down
2 changes: 1 addition & 1 deletion Winch/Serialization/Item/SpatialItemDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SpatialItemDataConverter : ItemDataConverter
{ "sprite", new(null, o => TextureUtil.GetSprite(o.ToString())) },
{ "platformSpecificSpriteOverrides", new(null, null) },
{ "itemColor", new(new Color(0.1922f, 0.1922f, 0.1922f, 255), o=> DredgeTypeHelpers.GetColorFromJsonObject(o)) }, // default game uses
{ "canBeDiscardedByPlayer", new(true, o => bool.Parse(o.ToString())) },
{ "canBeDiscardedByPlayer", new(false, o => bool.Parse(o.ToString())) },
{ "canBeDiscardedDuringQuestPickup", new(true, o => bool.Parse(o.ToString())) },
{ "hasSpecialDiscardAction", new(false, o => bool.Parse(o.ToString())) },
{ "discardPromptOverride", new("", null) },
Expand Down

0 comments on commit ca0bfd0

Please sign in to comment.