Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
## Winch
- Now uses HarmonyX
- Updated game libs
- New `EnumUtil` class for helping modders to parse or create enums during runtime
- Custom fish now get added to encyclopedia
- Item IDs must be unique now. It will error if you have duplicate items.
- Fixed a bug that stops you from reloading your save after exiting to main menu
- Fixed item data converters not including base class fields
- Added a ton of missing fields and default values for existing item data converters
- Fix nets ignoring slots that only accept certain item types when you pickup and place an item
- Item type icons
- New item data types
  - `Durable`
  - `Nets`
- New asset folder `GridConfigs` for making trawl nets' and crab pots' inventory grid.
- Can now actually make fish aberrations and connect them to their original version.
- New POI type `Items`. A spot that you can pick up 1 item from. Vanilla uses this for message in a bottles.
- Fix item poi handler to not decrease stock when item cannot fit in inventory (for the ItemPOIs above)

### Example Items
- Added harvest POI that was sitting in project but wasn't actually copied to the mod build
- Added tons of more examples
  - POIs for actually getting these items (they are all by the Gale Cliffs Pontoon)
  - Aberrations
  - Crab
  - Trinket
  - Fishing Rod
  - Crab Pot
  - Trawl Net
  - Engine
  - Light
  - Relic
  - Researchable Book
  - Message in a Bottle
  - Note
  - Journal
  • Loading branch information
xen-42 authored Jul 16, 2024
2 parents d91f67b + 7d6466f commit 95d27c0
Show file tree
Hide file tree
Showing 160 changed files with 10,166 additions and 258 deletions.
7 changes: 6 additions & 1 deletion Winch.Examples/DisasterButton/DisasterButton.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,22 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\WinchCommon\WinchCommon.csproj">
<Private>False</Private>
<CopyLocalSatelliteAssemblies>False</CopyLocalSatelliteAssemblies>
</ProjectReference>
<ProjectReference Include="..\..\Winch\Winch.csproj">
<Private>False</Private>
<CopyLocalSatelliteAssemblies>False</CopyLocalSatelliteAssemblies>
</ProjectReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="DredgeGameLibs" Version="1.2.0" />
<PackageReference Include="DredgeGameLibs" Version="1.4.2" />
</ItemGroup>

<ItemGroup>
<None Include="DisasterButton.csproj.user" />
<None Update="Assets\Localization\de.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
3 changes: 3 additions & 0 deletions Winch.Examples/DisasterButton/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Disaster button

Press the delete key to trigger a random world event.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"columns": 7,
"rows": 7,
"cellGroupConfigs": [
{
"cells": [
"XXXXXXX",
"XXXXXXX",
"XXXXXXX",
"XXX XXX",
"XXXXXXX",
"XXXXXXX",
"XXXXXXX"
],
"itemType": "GENERAL",
"itemSubtype": "FISH",
"isHidden": false,
"damageImmune": false
},
{
"cells": [
" ",
" ",
" ",
" X ",
" ",
" ",
" "
],
"itemType": "GENERAL",
"itemSubtype": "TRINKET",
"isHidden": false,
"damageImmune": true
}
],
"mainItemType": "GENERAL",
"mainItemSubtype": "FISH",
"itemsInThisBelongToPlayer": true,
"canAddItemsInQuestMode": false,
"hasUnderlay": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"columns": 7,
"rows": 7,
"cellGroupConfigs": [],
"mainItemType": "GENERAL",
"mainItemSubtype": "FISH",
"itemsInThisBelongToPlayer": true,
"canAddItemsInQuestMode": false,
"hasUnderlay": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"itemNameKey": "exampleitems.book.name",
"itemDescriptionKey": "exampleitems.book.desc",
"researchBenefitValue": 0.05,
"researchBenefitType": "MOVEMENT_SPEED",
"daysToResearch": 1,
"completedDescriptionKey": "exampleitems.book.completedDesc"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"itemNameKey": "exampleitems.ice.name",
"itemDescriptionKey": "exampleitems.ice.desc",
"hasAdditionalNote": true,
"additionalNoteKey": "item.ice-block-1.notes",
"sprite": "exampleitems.ice",
"itemColor": {
"r": 58,
"g": 40,
"b": 32,
"a": 255
},
"squishFactor": 1,
"value": 50,
"dimensions": [
"X"
],
"damageMode": "DESTROY",
"maxDurabilityDays": 1,
"displayDurabilityAsPercentage": true
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"itemNameKey": "exampleitems.furnace.name",
"itemDescriptionKey": "exampleitems.furnace.desc",
"sprite": "exampleitems.furnace",
"itemColor": {
"r": 49,
"g": 49,
"b": 49,
"a": 255
},
"squishFactor": 1,
"value": 5,
"dimensions": [
"X"
],
"speedBonus": 128
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
{
"Name": "Raw Cod",
"itemNameKey": "exampleitems.mccod.name",
"itemDescriptionKey": "exampleitems.mccod.desc",
"itemType": "GENERAL",
"itemSubtype": "FISH",
"sprite": "exampleitems.mccod",
"itemColor": {
"r": 47,
"g": 64,
"b": 63,
"a": 8
"r": 74,
"g": 237,
"b": 217,
"a": 10
},
"tooltipTextColor": {
"r": 74,
"g": 237,
"b": 217,
"a": 255
},
"squishFactor": 1,
"value": 5,
"dimensions": [
"X"
],
"zonesFoundIn": "OPEN_OCEAN",
"day": true,
"night": true,
"minSizeCentimeters": 5,
"maxSizeCentimeters": 10,
"harvestMinigameType": "DREDGE_RADIAL",
"perSpotMin": 3,
"perSpotMax": 8,
"harvestPOICategory": "FISH_SMALL",
"harvestableType": "SHALLOW",
"harvestDifficulty": "VERY_EASY",
"harvestableType": "COASTAL",
"harvestDifficulty": "VERY_EASY",
"aberrations": ["exampleitems.mcsalmon","exampleitems.mctropical"]
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"itemNameKey": "exampleitems.mcsalmon.name",
"itemDescriptionKey": "exampleitems.mcsalmon.desc",
"itemType": "GENERAL",
"itemSubtype": "FISH",
"sprite": "exampleitems.mcsalmon",
"itemColor": {
"r": 136,
"g": 0,
"b": 76,
"a": 255
},
"tooltipTextColor": {
"r": 136,
"g": 0,
"b": 76,
"a": 255
},
"squishFactor": 1,
"value": 5,
"dimensions": [
"X"
],
"zonesFoundIn": "OPEN_OCEAN",
"day": true,
"night": true,
"minSizeCentimeters": 5,
"maxSizeCentimeters": 10,
"harvestMinigameType": "DREDGE_RADIAL",
"perSpotMin": 3,
"perSpotMax": 8,
"harvestPOICategory": "FISH_SMALL",
"harvestableType": "SHALLOW",
"harvestDifficulty": "VERY_EASY",
"isAberration": true,
"nonAberrationParent": "exampleitems.mccod"
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"itemNameKey": "exampleitems.mctropical.name",
"itemDescriptionKey": "exampleitems.mctropical.desc",
"itemType": "GENERAL",
"itemSubtype": "FISH",
"sprite": "exampleitems.mctropical",
"itemColor": {
"r": 136,
"g": 0,
"b": 76,
"a": 255
},
"tooltipTextColor": {
"r": 136,
"g": 0,
"b": 76,
"a": 255
},
"squishFactor": 1,
"value": 5,
"dimensions": [
"X"
],
"zonesFoundIn": "TWISTED_STRAND",
"day": true,
"night": true,
"minSizeCentimeters": 5,
"maxSizeCentimeters": 10,
"harvestMinigameType": "DREDGE_RADIAL",
"perSpotMin": 3,
"perSpotMax": 8,
"harvestPOICategory": "FISH_SMALL",
"harvestableType": "OCEANIC",
"harvestDifficulty": "VERY_EASY",
"isAberration": true,
"nonAberrationParent": "exampleitems.mccod"
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"itemNameKey": "exampleitems.rainbowfiddlercrab.name",
"itemDescriptionKey": "exampleitems.rainbowfiddlercrab.desc",
"itemType": "GENERAL",
"itemSubtype": "FISH",
"sprite": "exampleitems.rainbowfiddlercrab",
"itemColor": {
"r": 74,
"g": 237,
"b": 217,
"a": 10
},
"tooltipTextColor": {
"r": 74,
"g": 237,
"b": 217,
"a": 255
},
"squishFactor": 1,
"value": 50,
"dimensions": [
"XXX",
"XXX"
],
"zonesFoundIn": "TWISTED_STRAND",
"day": true,
"night": true,
"minSizeCentimeters": 5,
"maxSizeCentimeters": 10,
"harvestMinigameType": "FISHING_RADIAL",
"perSpotMin": 3,
"perSpotMax": 5,
"harvestPOICategory": "FISH_LARGE",
"harvestableType": "CRAB",
"harvestDifficulty": "MEDIUM",
"canBeCaughtByRod": false,
"canBeCaughtByPot": true,
"canBeCaughtByNet": false
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"itemNameKey": "exampleitems.nautilus.name",
"itemDescriptionKey": "exampleitems.nautilus.desc",
"sprite": "exampleitems.nautilus",
"itemColor": {
"r": 58,
"g": 40,
"b": 32,
"a": 255
},
"squishFactor": 1,
"value": 50,
"dimensions": [
"X"
],
"damageMode": "DESTROY"
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"itemNameKey": "exampleitems.diamond.name",
"itemDescriptionKey": "exampleitems.diamond.desc",
"itemType": "GENERAL",
"itemSubtype": "TRINKET",
"sprite": "exampleitems.diamond",
"itemColor": {
"r": 74,
"g": 237,
"b": 217,
"a": 10
},
"tooltipTextColor": {
"r": 74,
"g": 237,
"b": 217,
"a": 255
},
"squishFactor": 1,
"value": 100,
"dimensions": [
"XX",
"XX"
],
"damageMode": "DESTROY",
"harvestMinigameType": "DREDGE_RADIAL",
"perSpotMin": 3,
"perSpotMax": 8,
"harvestPOICategory": "TRINKET",
"harvestableType": "ABYSSAL",
"harvestDifficulty": "VERY_HARD"
}

Loading

0 comments on commit 95d27c0

Please sign in to comment.