-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from Sigma88/Development
Development
- Loading branch information
Showing
16 changed files
with
230 additions
and
155 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
80 changes: 80 additions & 0 deletions
80
GameData/Sigma/Dimensions/Configs/ReDimension/applySettings.cfg
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Multiply Dimensions | ||
|
||
@Kopernicus:FOR[SigDim2] | ||
{ | ||
@Body,* | ||
{ | ||
@PlanetDimensions[0] *= #$PlanetMultiplier[0]$ | ||
@PlanetDimensions[1] *= #$PlanetMultiplier[1]$ | ||
@PlanetDimensions[2] *= #$PlanetMultiplier[2]$ | ||
@PlanetDimensions[3] *= #$PlanetMultiplier[3]$ | ||
@PlanetDimensions[4] *= #$PlanetMultiplier[4]$ | ||
@PlanetDimensions[5] *= #$PlanetMultiplier[5]$ | ||
@PlanetDimensions[6] *= #$PlanetMultiplier[6]$ | ||
@PlanetDimensions[8] *= #$PlanetMultiplier[8]$ | ||
@PlanetDimensions[9] *= #$PlanetMultiplier[9]$ | ||
@PlanetDimensions[10] *= #$PlanetMultiplier[10]$ | ||
@PlanetDimensions[11] *= #$PlanetMultiplier[11]$ | ||
} | ||
} | ||
|
||
// Apply changes needed for advanced settings | ||
|
||
@Kopernicus:FOR[SigDim2] | ||
{ | ||
// SCATTER SIZE | ||
@Body:HAS[#PlanetDimensions[*,*,*,*,*,*,*,*,0,*,*,*]] | ||
{ | ||
// Set SphereOfInfluence multiplier | ||
@PlanetDimensions[8] = #$PlanetDimensions[1]$ | ||
} | ||
@Body:HAS[#PlanetDimensions[*,*,*,*,*,*,*,*,*,0,*,*]] | ||
{ | ||
// Set Ring size multiplier | ||
@PlanetDimensions[9] = #$PlanetDimensions[1]$ | ||
@PlanetDimensions[9] /= #$PlanetDimensions[0]$ | ||
} | ||
@Body:HAS[#PlanetDimensions[*,*,*,*,*,*,*,0,*,*,*,*]] | ||
{ | ||
// define PlanetDimensions2[0] = changeScatterSize | ||
// define PlanetDimensions2[1] = changeScatterDensity | ||
|
||
%PlanetDimensions2 = #1,$PlanetDimensions[0]$ | ||
%CheckResize = #$PlanetDimensions[0]$ | ||
} | ||
@Body:HAS[#CheckResize[>1]] | ||
{ | ||
@PlanetDimensions2[1] != 2 | ||
} | ||
@Body:HAS[#CheckResize[<1]] | ||
{ | ||
@PlanetDimensions2[1] *= 0.5 | ||
@PlanetDimensions2[1] += 0.5 | ||
} | ||
@Body:HAS[#PlanetDimensions[*,*,*,*,*,*,*,1,*,*,*,*],~CheckResize[*]] | ||
{ | ||
// define PlanetDimensions2[0] = changeScatterSize | ||
// define PlanetDimensions2[1] = changeScatterDensity | ||
|
||
%PlanetDimensions2 = #$PlanetDimensions[0]$,$PlanetDimensions[0]$ | ||
@PlanetDimensions2[1] != 2 | ||
} | ||
@Body:HAS[#CheckResize[*]] | ||
{ | ||
!CheckResize = DEL | ||
} | ||
@Body:HAS[#PlanetDimensions[1,*,*,*,*,1,*,*,*,*,*,*]] | ||
{ | ||
// define PlanetDimensions2[2] = needsCache | ||
// NEEDS NEW CACHE = FALSE | ||
|
||
@PlanetDimensions2 = #$PlanetDimensions2$,False | ||
} | ||
@Body:HAS[~PlanetDimensions[*False]] | ||
{ | ||
// define PlanetDimensions2[2] = needsCache | ||
// NEEDS NEW CACHE = TRUE | ||
|
||
@PlanetDimensions2 = #$PlanetDimensions2$,True | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
GameData/Sigma/Dimensions/Configs/ReDimension/groundScatters.cfg
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
8 changes: 4 additions & 4 deletions
8
GameData/Sigma/Dimensions/Configs/ReDimension/newCacheFiles.cfg
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
@Kopernicus:AFTER[SigDim] | ||
@Kopernicus:FOR[SigDim2] | ||
{ | ||
@Body:HAS[#PlanetDimensions[*,True],~cacheFile[*]] | ||
@Body:HAS[#PlanetDimensions2[*,True],~cacheFile[*]] | ||
{ | ||
cacheFile = #Kopernicus/Cache/$name$.bin | ||
} | ||
@Body:HAS[#PlanetDimensions[*,True]] | ||
@Body:HAS[#PlanetDimensions2[*,True]] | ||
{ | ||
@cacheFile = #Sigma/Dimensions/Cache/§$PlanetDimensions[0]$x]Resize/§$PlanetDimensions[5]$x]landscape/$cacheFile$ | ||
@cacheFile ^= :§:[: | ||
} | ||
} | ||
} |
Oops, something went wrong.