mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
4a66374e24
- Introduced FeedCard and FieldShow scenes with corresponding GDScript files for managing feed and item display. - Added SVG resources for banana and baseball items. - Updated ItemStore to include mappings for item types and names in Chinese. - Enhanced FieldShow and ItemShow scripts to dynamically update UI elements based on exported properties. - Implemented a new Feed class for structured feed data handling.
32 lines
577 B
GDScript
32 lines
577 B
GDScript
@tool
|
|
class_name FieldStore
|
|
|
|
enum Entity {
|
|
MAX_HEALTH,
|
|
DAMAGE_MULTIPILER,
|
|
MOVEMENT_SPEED,
|
|
ATTACK_SPEED,
|
|
CRIT_RATE,
|
|
CRIT_DAMAGE,
|
|
PENERATE
|
|
}
|
|
static var entityMap = {
|
|
Entity.MAX_HEALTH: "最大生命值",
|
|
Entity.DAMAGE_MULTIPILER: "伤害倍率",
|
|
Entity.MOVEMENT_SPEED: "移动速度",
|
|
Entity.ATTACK_SPEED: "攻击速度",
|
|
Entity.CRIT_RATE: "暴击率",
|
|
Entity.CRIT_DAMAGE: "暴击伤害",
|
|
Entity.PENERATE: "穿透"
|
|
}
|
|
|
|
enum Bullet {
|
|
SPEED,
|
|
DAMAGE,
|
|
PENERATE
|
|
}
|
|
static var bulletMap = {
|
|
Bullet.SPEED: "速度",
|
|
Bullet.DAMAGE: "伤害",
|
|
Bullet.PENERATE: "穿透"
|
|
} |