Skip to content

Commit

Permalink
Renaming dontEatTheFruit setting to a more descriptive name
Browse files Browse the repository at this point in the history
  • Loading branch information
risvh committed Dec 22, 2022
1 parent f2d55eb commit d377111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gameSource/LivingLifePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17514,13 +17514,13 @@ void LivingLifePage::step() {
}

if( id == ourID ) {
int dontEatTheFruit = SettingsManager::getIntSetting( "dontEatTheFruit", -1 );
int automaticInfertilityAsEve = SettingsManager::getIntSetting( "automaticInfertilityAsEve", -1 );
// TODO: If fertility age is ever not hard coded, maybe put it here?
if (dontEatTheFruit > 0 and existing->lineageEveID == ourID and existing->age < 15.0) {
if (automaticInfertilityAsEve > 0 and existing->lineageEveID == ourID and existing->age < 15.0) {
// We are Eve, not yet fertile, and have chosen not to eat the fruit. No BB plz.
Thread::staticSleep( 1000 ); // Server ignores say commands sent in the first second after creation.
sendToServerSocket((char*)"SAY 0 0 NO BB#");
printf("dontEatTheFruit set, making Eve infertile.\n");
printf("automaticInfertilityAsEve set, making Eve infertile.\n");
}
}

Expand Down
File renamed without changes.

0 comments on commit d377111

Please sign in to comment.