- ItemDisplay.php:移除 formatSpellCompact() 方法(已在 SpellDisplay 中实现) - ItemDisplay.php:简化 renderSlot() 方法,移除法术特定逻辑 - ItemDisplay.php:更新 renderListItem() 注释,说明法术由 SpellDisplay 处理 - InventoryPanel.php:增强列表显示,对法术使用 SpellDisplay::formatSpellCompact() - StatsPanel.php:技能槽位显示改用 SpellDisplay::renderSlot() 结果: ✓ 所有法术显示逻辑已集中到 SpellDisplay.php ✓ ItemDisplay.php 专注于装备显示逻辑 ✓ 调用者正确路由:法术→SpellDisplay, 装备→ItemDisplay ✓ 保持向后兼容性,同时提高代码组织性 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1.7 KiB
XML
40 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project version="4">
|
|
<component name="MessDetectorOptionsConfiguration">
|
|
<option name="transferred" value="true" />
|
|
</component>
|
|
<component name="PHPCSFixerOptionsConfiguration">
|
|
<option name="transferred" value="true" />
|
|
</component>
|
|
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
<option name="highlightLevel" value="WARNING" />
|
|
<option name="transferred" value="true" />
|
|
</component>
|
|
<component name="PhpIncludePathManager">
|
|
<include_path>
|
|
<path value="$PROJECT_DIR$/vendor/symfony/deprecation-contracts" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/service-contracts" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/string" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-grapheme" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-normalizer" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/console" />
|
|
<path value="$PROJECT_DIR$/vendor/composer" />
|
|
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
|
<path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
|
|
</include_path>
|
|
</component>
|
|
<component name="PhpProjectSharedConfiguration" php_language_level="8.0" />
|
|
<component name="PhpStanOptionsConfiguration">
|
|
<option name="transferred" value="true" />
|
|
</component>
|
|
<component name="PhpUnit">
|
|
<phpunit_settings>
|
|
<PhpUnitSettings custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" />
|
|
</phpunit_settings>
|
|
</component>
|
|
<component name="PsalmOptionsConfiguration">
|
|
<option name="transferred" value="true" />
|
|
</component>
|
|
</project> |