Coder Social home page Coder Social logo

dice3's Introduction

欢迎 Welcome

我是溯洄(OIer & CTFer)!经常没事情的时候写代码玩!

比较有趣的项目有 Dice, CQXQ之类的(这些我都不再继续参与开发了)

Suhui Here! I regularly participate in Olympiads in Informatics (OI) and Capture the Flags (CTF) contests.

Some fun projects I have written include Dice, CQXQ

dice3's People

Contributors

w4123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dice3's Issues

设置群昵称无效&&自动替换功能在ra时无效

使用环境:
OS:Ubuntu 16
软件:酷Qdocker 2.0,Release页面下载的的Dice3版本
在群卡片切换为某张特定卡片时(主动使用.st switch 或者使用.nn),.nn设置的群名片会被自动删除,体现为有设置非default卡片时无法有效使用.nn,但全局设置名片有效。
我已经检查过了一遍代码,但是坦白说觉得逻辑都是正确的……没看出有哪里有问题。我也没条件可以查数据库。
另外关于自动替换技能简称/全称的功能,这个功能在.st set中实现良好,但是在.ra中并未实现,造成了设置的时候可以使用“图书馆”做名字,但是roll的时候反而不能用的问题。目前我认为应当在:
int get_single_card_properties(const cq::Target &target, const std::string &character_card_name, std::string &property) { SQLite::Statement st(*db::db, "SELECT value FROM character_cards WHERE qq_id = ? AND card_name = ? AND property = ?"); st.bind(1, *target.user_id); st.bind(2, character_card_name); st.bind(3, property); if (st.executeStep()) { return st.getColumn(0).getInt(); } if (msg::SkillDefaultVal.count(property)) { return msg::SkillDefaultVal.at(property); } throw exception::exception( utils::format_string(msg::GetGlobalMsg("strPropertyNotFoundError"), {{"property_name", property}})); }
函数增加一个将property对应查表的调用。手头没有VS build环境只能看看代码,敬请见谅……

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.