forked from Continuities/adarkroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add $SM.setget, refactor Room to better use $SM
game.room.builder >> game.builder.level setget is mainly for use in local copies of states, useful for keeping code cleaner and less redundant while maintaining set/get of states by the $SM ====functions refactored==== Room.unlockForext //remove update calls Room.buy //remove update calls Room.build //remove update calls Room.cooFire //added locals to reduce gets Room.adjustTemp //added locals to reduce gets Room.updateBuilderState //added local to reduce gets Room.craftUnlocked //Room unlock is always going to be true, don't need to check parents to avoid errors anymore Room.buyUnlocked //Room unlock is always going to be true, don't need to check parents to avoid errors anymore
- Loading branch information
Showing
3 changed files
with
57 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters