引入属性、伤害管线

This commit is contained in:
2026-09-18 21:43:22 +08:00
parent 92e1ea0d55
commit ba25ec1926
108 changed files with 2920 additions and 720 deletions
Binary file not shown.
@@ -9,13 +9,14 @@
"weaponRecycleRate": 300,
"shopGoodsCount": 4,
"shopPriceRandomPercent": 50,
"shopMinPrice": 0,
"shopMinPrice": 1,
"levelUpRefreshPriceBase": 2,
"levelUpRewardCount": 4,
"spawnEnemyMaxCount": 5000,
"enemySpawnDistanceMin": 14000,
"enemySpawnDistanceMax": 18000,
"weaponRotateSpeed": 5000,
"weaponBaseCrit": 0.05,
"playerGroupName": "Player",
"enemyGroupName": "Enemy",
"projectileGroupName": "Projectile",
@@ -30,6 +31,7 @@
"projectileEntity": "Projectile",
"damageTextYOffset": 1100,
"entityAsyncTimeout": 30000,
"critMultiplier": 1.5,
"enemyBodyRadius": 450,
"enemySeparationIterations": 2
}
@@ -1 +1 @@
┐ИХ┌▄Х┌┴2Х┌▄Х┌┴┐ЙГ┴≥И╫©2Г┴≥И╫©┐КХ└▒2Х└▒┐ЛИ╪╩Е╜░ 2И╪╩Е╜░┐МХ┘©2Х┘©┐НГ°╪Г²⌡2Г°╪Г²⌡┐ОХ┌▄Х┌┴─√Х┌▄Х┌┴┐ПГ┴≥И╫©─√Г┴≥И╫©┐ЯХ└▒─√Х└▒┐РИ╪╩Е╜░ ─√И╪╩Е╜░┐СХ┘©─√Х┘©┐ТГ°╪Г²⌡─√Г°╪Г²⌡┐УХ┌▄Х┌┴│,Х┌▄Х┌┴┐ЖГ┴≥И╫©│,Г┴≥И╫©┐ВХ└▒│,Х└▒┐ЬИ╪╩Е╜░ │,И╪╩Е╜░┐ЫХ┘©│,Х┘©┐ЗГ°╪Г²⌡│,Г°╪Г²⌡
┐ИХ┌▄Х┌┴млL=─хХ┌▄Х┌┴┐ЙГ┴≥И╫©млL=─хГ┴≥И╫©┐КХ└▒ млL=─хХ└▒┐ЛИ╪╩Е╜░млL=─хИ╪╩Е╜░┐МХ┘©млL=─хХ┘©┐НГ°╪Г²⌡млL=─хГ°╪Г²⌡┐ОХ┌▄Х┌┴ ≥>─хХ┌▄Х┌┴┐ПГ┴≥И╫© ≥>─хГ┴≥И╫©┐ЯХ└▒  ≥>─хХ└▒┐РИ╪╩Е╜░ ≥>─хИ╪╩Е╜░┐СХ┘© ≥>─хХ┘©┐ТГ°╪Г²⌡ ≥>─хГ°╪Г²⌡┐УХ┌▄Х┌┴ ≥≥>─хХ┌▄Х┌┴┐ЖГ┴≥И╫© ≥≥>─хГ┴≥И╫©┐ВХ└▒  ≥≥>─хХ└▒┐ЬИ╪╩Е╜░ ≥≥>─хИ╪╩Е╜░┐ЫХ┘© ≥≥>─хХ┘©┐ЗГ°╪Г²⌡ ≥≥>─хГ°╪Г²⌡
@@ -3,11 +3,11 @@
"id": 1001,
"title": "肌肉",
"rarity": 1,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"value": 50,
"isPercent": true
"statType": 4,
"value": 0.05,
"modifierType": 200
}
],
"sprite": "肌肉"
@@ -16,11 +16,11 @@
"id": 1002,
"title": "牙齿",
"rarity": 1,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"value": 50,
"isPercent": true
"statType": 4,
"value": 0.05,
"modifierType": 200
}
],
"sprite": "牙齿"
@@ -29,11 +29,11 @@
"id": 1003,
"title": "脑",
"rarity": 1,
"modifiers": [
"statModifierConfigs": [
{
"key": 6,
"value": 50,
"isPercent": true
"statType": 9,
"value": 0.05,
"modifierType": 200
}
],
"sprite": "脑"
@@ -42,11 +42,11 @@
"id": 1004,
"title": "鼻子",
"rarity": 1,
"modifiers": [
"statModifierConfigs": [
{
"key": 9,
"value": 50,
"isPercent": true
"statType": 8,
"value": 0.05,
"modifierType": 200
}
],
"sprite": "鼻子"
@@ -55,11 +55,11 @@
"id": 1005,
"title": "腿",
"rarity": 1,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"value": 50,
"isPercent": true
"statType": 14,
"value": 0.05,
"modifierType": 200
}
],
"sprite": "腿"
@@ -68,11 +68,11 @@
"id": 1006,
"title": "眼睛",
"rarity": 1,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"value": 50,
"isPercent": true
"statType": 1,
"value": 0.05,
"modifierType": 200
}
],
"sprite": "眼睛"
@@ -81,11 +81,11 @@
"id": 1007,
"title": "肌肉",
"rarity": 2,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"value": 150,
"isPercent": true
"statType": 4,
"value": 0.15,
"modifierType": 200
}
],
"sprite": "肌肉"
@@ -94,11 +94,11 @@
"id": 1008,
"title": "牙齿",
"rarity": 2,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"value": 150,
"isPercent": true
"statType": 4,
"value": 0.15,
"modifierType": 200
}
],
"sprite": "牙齿"
@@ -107,11 +107,11 @@
"id": 1009,
"title": "脑",
"rarity": 2,
"modifiers": [
"statModifierConfigs": [
{
"key": 6,
"value": 150,
"isPercent": true
"statType": 9,
"value": 0.15,
"modifierType": 200
}
],
"sprite": "脑"
@@ -120,11 +120,11 @@
"id": 1010,
"title": "鼻子",
"rarity": 2,
"modifiers": [
"statModifierConfigs": [
{
"key": 9,
"value": 150,
"isPercent": true
"statType": 8,
"value": 0.15,
"modifierType": 200
}
],
"sprite": "鼻子"
@@ -133,11 +133,11 @@
"id": 1011,
"title": "腿",
"rarity": 2,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"value": 150,
"isPercent": true
"statType": 14,
"value": 0.15,
"modifierType": 200
}
],
"sprite": "腿"
@@ -146,11 +146,11 @@
"id": 1012,
"title": "眼睛",
"rarity": 2,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"value": 150,
"isPercent": true
"statType": 1,
"value": 0.15,
"modifierType": 200
}
],
"sprite": "眼睛"
@@ -159,11 +159,11 @@
"id": 1013,
"title": "肌肉",
"rarity": 3,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"value": 300,
"isPercent": true
"statType": 4,
"value": 0.3,
"modifierType": 200
}
],
"sprite": "肌肉"
@@ -172,11 +172,11 @@
"id": 1014,
"title": "牙齿",
"rarity": 3,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"value": 300,
"isPercent": true
"statType": 4,
"value": 0.3,
"modifierType": 200
}
],
"sprite": "牙齿"
@@ -185,11 +185,11 @@
"id": 1015,
"title": "脑",
"rarity": 3,
"modifiers": [
"statModifierConfigs": [
{
"key": 6,
"value": 300,
"isPercent": true
"statType": 9,
"value": 0.3,
"modifierType": 200
}
],
"sprite": "脑"
@@ -198,11 +198,11 @@
"id": 1016,
"title": "鼻子",
"rarity": 3,
"modifiers": [
"statModifierConfigs": [
{
"key": 9,
"value": 300,
"isPercent": true
"statType": 8,
"value": 0.3,
"modifierType": 200
}
],
"sprite": "鼻子"
@@ -211,11 +211,11 @@
"id": 1017,
"title": "腿",
"rarity": 3,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"value": 300,
"isPercent": true
"statType": 14,
"value": 0.3,
"modifierType": 200
}
],
"sprite": "腿"
@@ -224,11 +224,11 @@
"id": 1018,
"title": "眼睛",
"rarity": 3,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"value": 300,
"isPercent": true
"statType": 1,
"value": 0.3,
"modifierType": 200
}
],
"sprite": "眼睛"
Binary file not shown.
+107 -107
View File
@@ -4,16 +4,16 @@
"name": "铁护腕",
"rarity": 1,
"price": 120,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"statType": 4,
"value": 10,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 12,
"isPercent": false
"modifierType": 100
}
],
"sprite": "铁护腕"
@@ -23,21 +23,21 @@
"name": "狂战士药剂",
"rarity": 2,
"price": 250,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"statType": 1,
"value": 53,
"isPercent": false
"modifierType": 100
},
{
"key": 5,
"value": 90,
"isPercent": true
"statType": 8,
"value": 0.09,
"modifierType": 200
},
{
"key": 3,
"statType": 4,
"value": 11,
"isPercent": false
"modifierType": 100
}
],
"sprite": "狂战士药剂"
@@ -47,21 +47,21 @@
"name": "龙鳞护符",
"rarity": 3,
"price": 330,
"modifiers": [
"statModifierConfigs": [
{
"key": 6,
"statType": 9,
"value": 15,
"isPercent": false
"modifierType": 100
},
{
"key": 7,
"statType": 5,
"value": 21,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 23,
"isPercent": false
"modifierType": 100
}
],
"sprite": "龙鳞护符"
@@ -71,11 +71,11 @@
"name": "泰坦壁垒",
"rarity": 5,
"price": 423,
"modifiers": [
"statModifierConfigs": [
{
"key": 4,
"statType": 12,
"value": 79,
"isPercent": false
"modifierType": 100
}
],
"sprite": "泰坦壁垒"
@@ -85,16 +85,16 @@
"name": "轻便短靴",
"rarity": 1,
"price": 120,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"statType": 14,
"value": 800,
"isPercent": false
"modifierType": 100
},
{
"key": 3,
"statType": 4,
"value": 10,
"isPercent": false
"modifierType": 100
}
],
"sprite": "轻便短靴"
@@ -104,21 +104,21 @@
"name": "幽灵披风",
"rarity": 2,
"price": 195,
"modifiers": [
"statModifierConfigs": [
{
"key": 8,
"statType": 13,
"value": 10,
"isPercent": false
"modifierType": 100
},
{
"key": 3,
"statType": 4,
"value": 12,
"isPercent": false
"modifierType": 100
},
{
"key": 1,
"statType": 1,
"value": 44,
"isPercent": false
"modifierType": 100
}
],
"sprite": "幽灵披风"
@@ -128,11 +128,11 @@
"name": "精钢胸甲",
"rarity": 3,
"price": 335,
"modifiers": [
"statModifierConfigs": [
{
"key": 4,
"statType": 12,
"value": 62,
"isPercent": false
"modifierType": 100
}
],
"sprite": "精钢胸甲"
@@ -142,16 +142,16 @@
"name": "暗影之刃",
"rarity": 5,
"price": 433,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"statType": 4,
"value": 44,
"isPercent": false
"modifierType": 100
},
{
"key": 8,
"statType": 13,
"value": 27,
"isPercent": false
"modifierType": 100
}
],
"sprite": "暗影之刃"
@@ -161,21 +161,21 @@
"name": "旅行者徽章",
"rarity": 1,
"price": 121,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"statType": 1,
"value": 32,
"isPercent": false
"modifierType": 100
},
{
"key": 3,
"statType": 4,
"value": 7,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 8,
"isPercent": false
"modifierType": 100
}
],
"sprite": "旅行者徽章"
@@ -185,11 +185,11 @@
"name": "疾风手套",
"rarity": 2,
"price": 198,
"modifiers": [
"statModifierConfigs": [
{
"key": 5,
"value": 190,
"isPercent": true
"statType": 8,
"value": 0.19,
"modifierType": 200
}
],
"sprite": "疾风手套"
@@ -199,11 +199,11 @@
"name": "巨人之力卷轴",
"rarity": 3,
"price": 341,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"statType": 4,
"value": 57,
"isPercent": false
"modifierType": 100
}
],
"sprite": "巨人之力卷轴"
@@ -213,16 +213,16 @@
"name": "不死鸟之心",
"rarity": 5,
"price": 443,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"statType": 1,
"value": 139,
"isPercent": false
"modifierType": 100
},
{
"key": 6,
"statType": 9,
"value": 27,
"isPercent": false
"modifierType": 100
}
],
"sprite": "不死鸟之心"
@@ -232,16 +232,16 @@
"name": "幸运草",
"rarity": 1,
"price": 122,
"modifiers": [
"statModifierConfigs": [
{
"key": 6,
"statType": 9,
"value": 5,
"isPercent": false
"modifierType": 100
},
{
"key": 8,
"statType": 13,
"value": 7,
"isPercent": false
"modifierType": 100
}
],
"sprite": "幸运草"
@@ -251,16 +251,16 @@
"name": "石肤戒指",
"rarity": 2,
"price": 201,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"statType": 14,
"value": 600,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 38,
"isPercent": false
"modifierType": 100
}
],
"sprite": "石肤戒指"
@@ -270,16 +270,16 @@
"name": "风行者胫甲",
"rarity": 3,
"price": 346,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"statType": 14,
"value": 1600,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 32,
"isPercent": false
"modifierType": 100
}
],
"sprite": "风行者胫甲"
@@ -289,21 +289,21 @@
"name": "幻影斗篷",
"rarity": 5,
"price": 454,
"modifiers": [
"statModifierConfigs": [
{
"key": 8,
"statType": 13,
"value": 28,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 24,
"isPercent": false
"modifierType": 100
},
{
"key": 3,
"statType": 4,
"value": 24,
"isPercent": false
"modifierType": 100
}
],
"sprite": "幻影斗篷"
@@ -313,11 +313,11 @@
"name": "木质盾牌",
"rarity": 1,
"price": 124,
"modifiers": [
"statModifierConfigs": [
{
"key": 4,
"statType": 12,
"value": 23,
"isPercent": false
"modifierType": 100
}
],
"sprite": "木质盾牌"
@@ -327,16 +327,16 @@
"name": "生命之戒",
"rarity": 2,
"price": 204,
"modifiers": [
"statModifierConfigs": [
{
"key": 3,
"statType": 4,
"value": 17,
"isPercent": false
"modifierType": 100
},
{
"key": 1,
"statType": 1,
"value": 69,
"isPercent": false
"modifierType": 100
}
],
"sprite": "生命之戒"
@@ -346,21 +346,21 @@
"name": "精灵耳环",
"rarity": 3,
"price": 352,
"modifiers": [
"statModifierConfigs": [
{
"key": 1,
"statType": 1,
"value": 74,
"isPercent": false
"modifierType": 100
},
{
"key": 3,
"statType": 4,
"value": 19,
"isPercent": false
"modifierType": 100
},
{
"key": 8,
"statType": 13,
"value": 20,
"isPercent": false
"modifierType": 100
}
],
"sprite": "精灵耳环"
@@ -370,21 +370,21 @@
"name": "战神勋章",
"rarity": 5,
"price": 464,
"modifiers": [
"statModifierConfigs": [
{
"key": 5,
"value": 150,
"isPercent": true
"statType": 8,
"value": 0.15,
"modifierType": 200
},
{
"key": 3,
"statType": 4,
"value": 29,
"isPercent": false
"modifierType": 100
},
{
"key": 4,
"statType": 12,
"value": 27,
"isPercent": false
"modifierType": 100
}
],
"sprite": "战神勋章"
Binary file not shown.
+8 -8
View File
@@ -4,16 +4,16 @@
"maxHealth": 100,
"speed": 6,
"coin": 10,
"modifiers": [
"statModifierConfigs": [
{
"key": 2,
"value": 500,
"isPercent": true
"statType": 14,
"value": 0.5,
"modifierType": 200
},
{
"key": 1,
"value": 200,
"isPercent": true
"statType": 1,
"value": 0.2,
"modifierType": 200
}
],
"initialItems": [],
@@ -25,7 +25,7 @@
"maxHealth": 200,
"speed": 4,
"coin": 5,
"modifiers": [],
"statModifierConfigs": [],
"initialItems": [],
"prefab": "Player",
"sprite": "老人"
Binary file not shown.
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 0ee410edd089fef4d91515cb4a75589d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,162 @@
[
{
"statType": 1,
"name": "最大生命",
"defaultBaseValue": 100,
"hasMin": true,
"minValue": 1,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 2,
"name": "生命恢复",
"defaultBaseValue": 5,
"hasMin": true,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 3,
"name": "生命窃取",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 4,
"name": "伤害",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": -1,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": true
},
{
"statType": 5,
"name": "近战伤害",
"defaultBaseValue": 0,
"hasMin": false,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 6,
"name": "远程伤害",
"defaultBaseValue": 0,
"hasMin": false,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 7,
"name": "元素伤害",
"defaultBaseValue": 0,
"hasMin": false,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 8,
"name": "攻击速度",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": -0.8,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": true
},
{
"statType": 9,
"name": "暴击率",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": true,
"maxValue": 0.9,
"isPercentDisplay": true
},
{
"statType": 10,
"name": "工程学",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 11,
"name": "攻击范围",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 12,
"name": "护甲",
"defaultBaseValue": 0,
"hasMin": false,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 13,
"name": "闪避率",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": true,
"maxValue": 0.8,
"isPercentDisplay": true
},
{
"statType": 14,
"name": "移动速度",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0.5,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 15,
"name": "收获",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
},
{
"statType": 16,
"name": "幸运",
"defaultBaseValue": 0,
"hasMin": true,
"minValue": 0,
"hasMax": false,
"maxValue": 0,
"isPercentDisplay": false
}
]
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b66a5cb55d1374a45b0f74f7baba5283
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
+10 -5
View File
@@ -6,6 +6,7 @@
"price": 120,
"attack": 100,
"cooldown": 1500,
"damageType": 1,
"attackRange": 5000,
"attackSoundId": 10000,
"parameters": [
@@ -14,7 +15,7 @@
2000
]
],
"modifiers": [],
"statModifierConfigs": [],
"prefab": "WeaponKnife",
"sprite": "小刀"
},
@@ -25,10 +26,11 @@
"price": 130,
"attack": 120,
"cooldown": 1000,
"damageType": 2,
"attackRange": 15000,
"attackSoundId": 10000,
"parameters": [],
"modifiers": [],
"statModifierConfigs": [],
"prefab": "WeaponHandgun",
"sprite": "手枪"
},
@@ -39,6 +41,7 @@
"price": 100,
"attack": 150,
"cooldown": 2000,
"damageType": 1,
"attackRange": 5000,
"attackSoundId": 10000,
"parameters": [
@@ -47,7 +50,7 @@
120
]
],
"modifiers": [],
"statModifierConfigs": [],
"prefab": "WeaponSlash",
"sprite": "斧头"
},
@@ -58,6 +61,7 @@
"price": 150,
"attack": 80,
"cooldown": 3000,
"damageType": 4,
"attackRange": 12000,
"attackSoundId": 10000,
"parameters": [
@@ -66,7 +70,7 @@
3000
]
],
"modifiers": [],
"statModifierConfigs": [],
"prefab": "WeaponLightning",
"sprite": "闪电"
},
@@ -77,6 +81,7 @@
"price": 100,
"attack": 100,
"cooldown": 1500,
"damageType": 1,
"attackRange": 5000,
"attackSoundId": 10000,
"parameters": [
@@ -93,7 +98,7 @@
500
]
],
"modifiers": [],
"statModifierConfigs": [],
"prefab": "WeaponLance",
"sprite": "长枪"
}