This file contains hidden or 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
#!/usr/bin/env fish | |
if not set -q argv[1] | |
echo "point to a directory" >&2 | |
exit 1 | |
end | |
for file in $argv[1] $argv[1]/** | |
[ -d $file ] || continue | |
for f in $file/* | |
test -f $f; and string match -q "*.dds" $f |
This file contains hidden or 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
#!/usr/bin/env fish | |
if not set -q argv[1] | |
echo "point to a directory" >&2 | |
exit 1 | |
end | |
for file in $argv[1]/** | |
[ -d $file ] || continue | |
for f in $file/* | |
test -f $f; and string match -q "*.dds" $f |
This file contains hidden or 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
for file in gfx/interface/missions/** | |
[ -d $file ] || continue | |
for f in $file/* | |
test -f $f | |
end || continue | |
echo $file | |
end |
This file contains hidden or 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
Search: | |
^(\s*)add_(adm|dip|mil)_power\s*=\s*([0-9]+).* | |
\s*add_(adm|dip|mil)_power\s*=\s*[0-9]+.* | |
\s*add_(adm|dip|mil)_power\s*=\s*[0-9]+.* | |
Replace: | |
$1grant_all_mana = { | |
$1\tmana = $3 |
This file contains hidden or 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
# Search: | |
^(\s*)change_(adm|dip|mil)\s*=\s*([0-9-]*) | |
# Replace: | |
$1change_monarch_points_or_power = { | |
$1\tpoints = $3 | |
$1\tpower = $2 | |
$1} |
This file contains hidden or 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
^(\s*)if\s*=\s*\{ | |
\s*limit\s*=\s*\{ | |
\s*NOT\s*=\s*\{\s*accepted_culture\s*=\s*([A-Za-z_]*)\s*\} | |
\s*\} | |
\s*add_accepted_culture\s*=\s*[A-Za-z_]* | |
\s*\} |
This file contains hidden or 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
(\s*)if\s*=\s*\{ | |
\s*limit\s*=\s*\{ | |
\s*NOT\s*=\s*\{\s*accepted_culture\s*=\s*([A-Za-z_]*)\s*\} | |
\s*\} | |
\s*add_accepted_culture\s*=\s*[A-Za-z_]* | |
\s*\} | |
\s*else\s*=\s*\{ | |
\s*add_dip_power\s*=\s*[0-9]* | |
\s*\} |
This file contains hidden or 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
diff --git a/common/government_reforms/02_government_reforms_republics.txt b/common/government_reforms/02_government_reforms_republics.txt | |
index 6261e32..4c309f6 100644 | |
--- a/common/government_reforms/02_government_reforms_republics.txt | |
+++ b/common/government_reforms/02_government_reforms_republics.txt | |
@@ -13,6 +13,7 @@ republic_mechanic = { | |
modifiers = { | |
burghers_influence_modifier = 0.15 | |
vaisyas_influence_modifier = 0.15 | |
+ max_absolutism = -40 | |
} |
This file contains hidden or 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
diff --git a/common/government_reforms/02_government_reforms_republics.txt b/common/government_reforms/02_government_reforms_republics.txt | |
index 6261e32..4c309f6 100644 | |
--- a/common/government_reforms/02_government_reforms_republics.txt | |
+++ b/common/government_reforms/02_government_reforms_republics.txt | |
@@ -13,6 +13,7 @@ republic_mechanic = { | |
modifiers = { | |
burghers_influence_modifier = 0.15 | |
vaisyas_influence_modifier = 0.15 | |
+ max_absolutism = -40 | |
} |
This file contains hidden or 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
#!/usr/bin/env rc | |
# Assume all packages given are already installed | |
if(test $#* -lt 2) exit 1 | |
module=$1 | |
shift | |
for(pkg in $*) { | |
# Get all go binaries by checking for 'Go BuildID=' | |
for(bin in `{apk info -q -L $pkg \ | |
| grep -v '^usr/share' \ |
NewerOlder