Some cleanup
This commit is contained in:
1 parent
4e40a1825a
commit
c1be26023b
20 files changed
+451
-1330
No files matched your search
@@ -101,7 +101,6 @@ void InternalGameServer::startCampaign(
|
||||
state_.locations.clear();
|
||||
state_.players.clear();
|
||||
state_.questJournal.loadFromFile(campaign.questsPath, zipFile);
|
||||
//state_.globalFloats["player_hp"] = 200.f;
|
||||
|
||||
if (createLocalPlayer) {
|
||||
auto player = std::make_shared<CharacterState>();
|
||||
@@ -142,12 +141,9 @@ void InternalGameServer::resetCampaign(
|
||||
state_.isDarklands = false;
|
||||
state_.isNight = false;
|
||||
state_.isDawn = false;
|
||||
//state_.playerHp = 200.f;
|
||||
state_.playerMaxHp = 200.f;
|
||||
state_.money = 5500;
|
||||
state_.globalInts.clear();
|
||||
state_.globalFloats.clear();
|
||||
//state_.globalFloats["player_hp"] = 200.f;
|
||||
state_.tutorialStep = TutorialStep::AdvanceDialogue;
|
||||
state_.tutorialPhoneChatScreenOpened = false;
|
||||
state_.tutorialJournalScreenOpened = false;
|
||||
@@ -176,8 +172,7 @@ bool InternalGameServer::prepareLocation(const LocationConfig& config)
|
||||
if (player != state_.players.end() && player->second) {
|
||||
player->second->position = config.playerPosition;
|
||||
player->second->setTarget(
|
||||
config.playerPosition, std::string(), *authoritative.location,
|
||||
localPlayerId_);
|
||||
config.playerPosition, std::string(), *authoritative.location);
|
||||
}
|
||||
publishMutation();
|
||||
return initializeLocation;
|
||||
|
||||
Reference in new issue
Block a user