Skip to content

Commit

Permalink
changed port for server + added missing ultimate
Browse files Browse the repository at this point in the history
  • Loading branch information
sepp committed May 9, 2023
1 parent 0647584 commit c351c74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/Helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ class Helpers
if (hero_name == "Scarlet Witch")
{
diceanatomy = "AAABCD";
abilities = { "AAA", "AAAA", "AAAAA", "AABB", "CC","ABCD", "ADDD", "DDDD", "DDD", "BBC", "AAC" };
abilities = { "AAA", "AAAA", "AAAAA", "AABB", "CC","ABCD", "ADDD", "DDDD", "DDD", "BBC", "AAC", "DDDDD"};
}
if (hero_name == "Krampus")
{
Expand Down
6 changes: 3 additions & 3 deletions src/DiceThroneSimulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void precalc_all(bool do_target, std::string target)
void run_server(DiceRoller& helper)
{
#ifdef _WIN32
DTServer server{ 80, helper};
DTServer server{ 8080, helper};
#endif
}

Expand Down Expand Up @@ -549,12 +549,12 @@ void commandLineCalculation(const InputParser & parser)
if (parser.cmdOptionExists("-cheer"))
{
const std::string& out_s = parser.getCmdOption("-cheer");
slightlyWild = std::stoi(out_s);
cheer = std::stoi(out_s);
}
if (parser.cmdOptionExists("-probabilitymanipulation"))
{
const std::string& out_s = parser.getCmdOption("-probabilitymanipulation");
slightlyWild = std::stoi(out_s);
probabilityManipulation = std::stoi(out_s);
}
if (parser.cmdOptionExists("-cp"))
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ DTServer::DTServer(int port, DiceRoller& helper) : simulator_{helper}, simulator
::bind(server, reinterpret_cast<SOCKADDR*>(&server_addr), sizeof(server_addr));
listen(server, 0);

cout << "Listening for incoming connections..." << endl;
cout << "Listening for incoming connections on port " << std::to_string(port) << " ..." << endl;

int client_addr_size = sizeof(client_addr);

Expand Down

0 comments on commit c351c74

Please sign in to comment.