Browse Source

Reworked isHome Logic of Location

Stephan Fuchs 9 months ago
parent
commit
863a216d39
1 changed files with 2 additions and 4 deletions
  1. 2 4
      sugarcube/src/js/Location.js

+ 2 - 4
sugarcube/src/js/Location.js

@@ -34,10 +34,8 @@ class Location{
 		else
 			console.warn("Location-passage does not contain a private- or public-tag:",v);
 
-		if(passage_tags.includes('homeParents') || passage_tags.includes('home'))
-			this._isHome = true;
-		else
-			this._isHome = false;
+		let homeTag = State.variables.housing.home;
+		this._isHome = passage_tags.includes(homeTag);
 
 		for(let tag of passage_tags){
 			if(tag.startsWith('region_')){