- Add ItemExtensions.cs with reflection helpers for private field access - Add TagHelper.cs for game tag operations and custom TradingCard tag - Rewrite ModBehaviour.cs with complete item creation pipeline: - Clone base game item (ID 135) as template - Set properties via reflection (typeID, weight, value, quality) - Load PNG sprites from CardSets/*/images/ - Register items with ItemAssetsCollection - Proper cleanup on mod unload - Add F9 debug key to spawn cards for testing - Add deploy.sh and remove.sh scripts for quick mod installation - Add placeholder card images for ExampleSet - Add Unity module references (ImageConversion, InputLegacy) Cards now appear in-game with custom icons and can be spawned to inventory. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
72 lines
3.0 KiB
XML
72 lines
3.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.1</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<LangVersion>8.0</LangVersion>
|
|
<RootNamespace>TradingCardMod</RootNamespace>
|
|
<AssemblyName>TradingCardMod</AssemblyName>
|
|
|
|
<!-- Game installation path -->
|
|
<DuckovPath>/mnt/NV2/SteamLibrary/steamapps/common/Escape from Duckov</DuckovPath>
|
|
|
|
<SubPath>/Duckov_Data/Managed/</SubPath>
|
|
|
|
<!-- Steam Workshop path for mod dependencies -->
|
|
<WorkshopPath>/mnt/NV2/SteamLibrary/steamapps/workshop/content/3167020</WorkshopPath>
|
|
|
|
<!-- HarmonyLoadMod Workshop ID -->
|
|
<HarmonyModId>3589088839</HarmonyModId>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Game DLL references -->
|
|
<Reference Include="TeamSoda.Duckov.Core">
|
|
<HintPath>$(DuckovPath)$(SubPath)TeamSoda.Duckov.Core.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="TeamSoda.Duckov.Utilities">
|
|
<HintPath>$(DuckovPath)$(SubPath)TeamSoda.Duckov.Utilities.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="TeamSoda.MiniLocalizor">
|
|
<HintPath>$(DuckovPath)$(SubPath)TeamSoda.MiniLocalizor.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="SodaLocalization">
|
|
<HintPath>$(DuckovPath)$(SubPath)SodaLocalization.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="ItemStatsSystem">
|
|
<HintPath>$(DuckovPath)$(SubPath)ItemStatsSystem.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="Duckov">
|
|
<HintPath>$(DuckovPath)$(SubPath)Duckov.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine">
|
|
<HintPath>$(DuckovPath)$(SubPath)UnityEngine.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>$(DuckovPath)$(SubPath)UnityEngine.CoreModule.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.ImageConversionModule">
|
|
<HintPath>$(DuckovPath)$(SubPath)UnityEngine.ImageConversionModule.dll</HintPath>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.InputLegacyModule">
|
|
<HintPath>$(DuckovPath)$(SubPath)UnityEngine.InputLegacyModule.dll</HintPath>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Harmony library from HarmonyLoadMod (required dependency) -->
|
|
<Reference Include="$(WorkshopPath)/$(HarmonyModId)/0Harmony.dll"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Exclude non-code files from compilation -->
|
|
<None Include="CardSets/**/*" CopyToOutputDirectory="PreserveNewest" />
|
|
<None Include="info.ini" CopyToOutputDirectory="PreserveNewest" />
|
|
<None Include="preview.png" CopyToOutputDirectory="PreserveNewest" Condition="Exists('preview.png')" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Exclude test files from main build (they're in the test project) -->
|
|
<Compile Remove="tests/**/*.cs" />
|
|
</ItemGroup>
|
|
</Project>
|