@@ -887,7 +887,7 @@ int DiceEvent::BasicOrder()
887887 while (isspace (static_cast <unsigned char >(strMsg[intMsgCnt])))
888888 intMsgCnt++;
889889 // 指令匹配
890- if (console[" DebugMode" ])console. log ( " listen:" + strMsg, 0 , printSTNow () );
890+ if (console[" DebugMode" ])DD::debugLog ( printSTNow () + " listen:" + strMsg);
891891 if (strLowerMessage.substr (intMsgCnt, 9 ) == " authorize" )
892892 {
893893 intMsgCnt += 9 ;
@@ -3398,9 +3398,9 @@ int DiceEvent::InnerOrder() {
33983398 else if (strOption == " build" ) {
33993399 string strPC{ strip (filter_CQcode (readRest (), fromChat.gid ))};
34003400 if (!(resno = pl.buildCard (strPC, false , fromChat.gid ))) {
3401- auto pc = pl. getCard (strPC) ;
3401+ auto pc = pl[fromChat. gid ] ;
34023402 set (" show" , pc->show (true ));
3403- set (" char" , pc-> getName () );
3403+ set (" char" , strPC );
34043404 replyMsg (" strPcCardBuild" );
34053405 }
34063406 else {
@@ -3610,14 +3610,14 @@ int DiceEvent::InnerOrder() {
36103610 }
36113611 }
36123612 if (attr.find (" 自动成功" ) == 0 ) {
3613- strDifficulty = attr.substr (0 , 8 );
3613+ strDifficulty = attr.substr (0 , 12 );
36143614 attr = attr.substr (12 );
36153615 isAutomatic = true ;
36163616 }
36173617 if (attr.find (" 困难" ) == 0 || attr.find (" 极难" ) == 0 ) {
36183618 strDifficulty += attr.substr (0 , 6 );
36193619 intDifficulty = (attr.substr (0 , 6 ) == " 困难" ) ? 2 : 5 ;
3620- attr = attr.substr (4 );
3620+ attr = attr.substr (6 );
36213621 }
36223622 if (pc) {
36233623 attr = pc->standard (attr);
0 commit comments