(client) feat:实现热重载,实现多维度,实现武器,实现掉落物,实现状态UI,实现攻击AI (#44)
Co-authored-by: zzdxxz <2079238449@qq.com> Co-committed-by: zzdxxz <2079238449@qq.com>
This commit is contained in:
11
Client/Data/Core/Define/Item/Item.xml
Normal file
11
Client/Data/Core/Define/Item/Item.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Define>
|
||||
<ItemDef>
|
||||
<defName>smallHealthPotion</defName>
|
||||
<label>小生命瓶</label>
|
||||
<description>可以回复一点点血量</description>
|
||||
<textures>
|
||||
<li>TestGun</li>
|
||||
</textures>
|
||||
</ItemDef>
|
||||
</Define>
|
@ -1,5 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Define>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGunItem</defName>
|
||||
<path>Resources\Item\TestGun.png</path>
|
||||
</ImageDef>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGun</defName>
|
||||
<path>Resources\Item\TestGunUse.png</path>
|
||||
</ImageDef>
|
||||
<ImageDef>
|
||||
<defName>yellowBullet</defName>
|
||||
<path>Resources\Item\YellowBullet_down.png</path>
|
||||
</ImageDef>
|
||||
|
||||
<AttributesDef>
|
||||
<defName>TestGun</defName>
|
||||
<attack>10</attack>
|
||||
@ -14,8 +29,10 @@
|
||||
<label>测试枪</label>
|
||||
<description>一把测试用的枪</description>
|
||||
<attributes>TestGun</attributes>
|
||||
<texture>TestGun</texture>
|
||||
<itemTexture>TestGunItem</itemTexture>
|
||||
<type>Ranged</type>
|
||||
<textures>
|
||||
<li>TestGunItem</li>
|
||||
</textures>
|
||||
<bullet>yellowBullet</bullet>
|
||||
</WeaponDef>
|
||||
|
||||
@ -26,26 +43,38 @@
|
||||
<moveSpeed>20</moveSpeed>
|
||||
</attributes>
|
||||
<drawingOrder>
|
||||
<texturePath>Resources\Item</texturePath>
|
||||
<pixelsPerUnit>20</pixelsPerUnit>
|
||||
<drawingOrder_down>
|
||||
<node name="YellowBullet"/>
|
||||
</drawingOrder_down>
|
||||
<idle_down>
|
||||
<textures>
|
||||
<li>yellowBullet</li>
|
||||
</textures>
|
||||
</idle_down>
|
||||
<walk_down>
|
||||
<textures>
|
||||
<li>yellowBullet</li>
|
||||
</textures>
|
||||
</walk_down>
|
||||
</drawingOrder>
|
||||
<behaviorTree>
|
||||
<Node className="JobGiver_ContinuousMove"/>
|
||||
</behaviorTree>
|
||||
</BulletDef>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGunItem</defName>
|
||||
<path>Resources\Item\TestGun.png</path>
|
||||
</ImageDef>
|
||||
|
||||
<ImageDef>
|
||||
<defName>TestGun</defName>
|
||||
<path>Resources\Item\TestGunUse.png</path>
|
||||
</ImageDef>
|
||||
<BulletDef>
|
||||
<defName>testGunBullet</defName>
|
||||
<attributes>
|
||||
<health>1</health>
|
||||
<moveSpeed>20</moveSpeed>
|
||||
</attributes>
|
||||
<drawingOrder>
|
||||
<idle_down>
|
||||
<textures>
|
||||
<li>TestGun</li>
|
||||
</textures>
|
||||
</idle_down>
|
||||
<walk_down>
|
||||
<textures>
|
||||
<li>TestGun</li>
|
||||
</textures>
|
||||
</walk_down>
|
||||
</drawingOrder>
|
||||
</BulletDef>
|
||||
|
||||
|
||||
|
||||
@ -61,6 +90,7 @@
|
||||
<WeaponDef>
|
||||
<defName>Claw</defName>
|
||||
<label>爪子</label>
|
||||
<type>Melee</type>
|
||||
<description>爪子</description>
|
||||
<attributes>Claw</attributes>
|
||||
</WeaponDef>
|
||||
|
Reference in New Issue
Block a user