From 344efb2009b8c6d329a6d19dd45ed49076252710 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Aug 2017 00:38:31 +0300 Subject: Add into skill context menu for add shortcut. Also add chat command for add skill shortcut by skill id into free slot. --- src/resources/skill/skillinfo.cpp | 8 ++++++++ src/resources/skill/skillinfo.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'src/resources') diff --git a/src/resources/skill/skillinfo.cpp b/src/resources/skill/skillinfo.cpp index 3c74fcaa9..3f6a50eb6 100644 --- a/src/resources/skill/skillinfo.cpp +++ b/src/resources/skill/skillinfo.cpp @@ -194,3 +194,11 @@ SkillData *SkillInfo::getData1(const int lev) const return (*dataMap.begin()).second; return (*it).second; } + +std::string SkillInfo::toDataStr() const +{ + return strprintf("%d %d %d", + CAST_S32(customCastType), + customOffsetX, + customOffsetY); +} diff --git a/src/resources/skill/skillinfo.h b/src/resources/skill/skillinfo.h index 391a19912..c07b3209f 100644 --- a/src/resources/skill/skillinfo.h +++ b/src/resources/skill/skillinfo.h @@ -98,6 +98,8 @@ struct SkillInfo final || type == SkillType::Self || type == SkillType::Support; } + + std::string toDataStr() const A_WARN_UNUSED; }; typedef STD_VECTOR SkillList; -- cgit v1.2.3-60-g2f50