Skip to content

Commit

Permalink
feat(game): auto join
Browse files Browse the repository at this point in the history
  • Loading branch information
mystringEmpty committed Apr 14, 2024
1 parent 9f58580 commit 0d91a23
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dice/DiceSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class DiceSession: public AnysTable{
}
bool del_pl(long long uid);
bool is_simple() const { return player->empty() && master->empty(); }
bool is_part(long long uid) const { return is_simple() || player->count(uid) || master->count(uid); }
bool is_part(long long uid) const { return is_simple() || player->count(uid) || master->count(uid) || is("auto_join"); }
bool del_ob(long long uid) {
if (obs->count(uid))obs->erase(uid);
else return false;
Expand Down
1 change: 1 addition & 0 deletions Dice/GlobalVar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ const dict_ci<string> GlobalComment{
};
const dict_ci<> HelpDoc = {
{"更新",R"(
661:优化game指令触发机制
660:优化sample嵌套
659:reply支持冷却/限额回复
658:重写.dnd展示
Expand Down
2 changes: 1 addition & 1 deletion Dice/GlobalVar.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Please Do not modify Dice_Build, Dice_Ver_Without_Build, DiceRequestHeader or Dice_Ver
* To costum version info, please modify const Dice_Short_Ver or Dice_Full_Ver
*/
constexpr unsigned short Dice_Build = 660u;
constexpr unsigned short Dice_Build = 661u;
inline const std::string Dice_Ver_Without_Build = "2.7.0beta8";
constexpr auto DiceRequestHeader = "Dice/2.7.0";
inline const std::string Dice_Ver = Dice_Ver_Without_Build + "(" + std::to_string(Dice_Build) + ")";
Expand Down

0 comments on commit 0d91a23

Please sign in to comment.