Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
add,禁用升级的文本
Browse files Browse the repository at this point in the history
  • Loading branch information
TYHH10 authored and TYHH10 committed Jul 12, 2024
1 parent 00677b1 commit ec29dc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mod/pop/popmgr_extensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3084,11 +3084,11 @@ namespace Mod::Pop::PopMgr_Extensions
{
if (strtol(str.c_str(), nullptr, 0) == upgradeslot + 1)
{
gamehelpers->TextMsg(ENTINDEX(player), TEXTMSG_DEST_CENTER, CFmtStr("%s upgrade is not allowed in this mission", upgradename));
gamehelpers->TextMsg(ENTINDEX(player), TEXTMSG_DEST_CENTER, CFmtStr("%s 这个升级在本任务中被禁用了。", upgradename));
return false;
}
else if (FStrEq(upgradename, str.c_str())) {
gamehelpers->TextMsg(ENTINDEX(player), TEXTMSG_DEST_CENTER, CFmtStr("%s upgrade is not allowed in this mission", upgradename));
gamehelpers->TextMsg(ENTINDEX(player), TEXTMSG_DEST_CENTER, CFmtStr("%s 这个升级在本任务中被禁用了。", upgradename));
return false;
}
}
Expand Down Expand Up @@ -3160,7 +3160,7 @@ namespace Mod::Pop::PopMgr_Extensions
}

if (foundMatch) {
gamehelpers->TextMsg(ENTINDEX(player), TEXTMSG_DEST_CENTER, CFmtStr("You cannot buy %s%s upgrades for this weapon in this mission\n%s%s", entry.max != 0 ? "more ": "", upgradename,
gamehelpers->TextMsg(ENTINDEX(player), TEXTMSG_DEST_CENTER, CFmtStr("在此任务中,您无法购买 %s%s 武器升级\n%s%s", entry.max != 0 ? "more ": "", upgradename,
incompatibleItem.c_str(), !incompatibleItem.empty() ? " blocks this upgrade" : ""));
return false;
}
Expand Down

0 comments on commit ec29dc7

Please sign in to comment.