Vega strike Python Modules doc
0.5.1
Documentation of the " Modules " folder of Vega strike
|
Functions | |
def | shieldBuildName |
def | shieldBuildCategory |
def | afterburnerBuildName |
def | afterburnerBuildCategory |
def | reactorBuildName |
def | reactorBuildCategory |
def | engineBuildName |
def | engineBuildCategory |
def | armorBuildName |
def | armorBuildCategory |
def | GetDiffInt |
# IMPLEMENTATION # # Dataset changes are UNLIKELY to require # implementation changes. More... | |
def | GetDiffCargo |
def | getItem |
def | BuildDiffCat |
def | GetRandomWeapon |
def | getRandIncDec |
def | GetShieldLevelZero |
def | GetRandomShield |
def | GetRandomAfterburner |
def | getRandomRadar |
def | UpgradeRadar |
def | UpgradeAfterburner |
def | getRandomEngine |
def | UpgradeEngine |
def | GetRandomHull |
def | GetRandomTurret |
def | GetRandomArmor |
def | UpgradeArmor |
def | GetRandomAmmo |
def | GetRandomRepairSys |
def | basicUnit |
def | upgradeHelper |
def | upgradeUnit |
Variables | |
string | upgrades_weapons_category = "upgrades/Weapons" |
# CONFIGURATION # # IMPORTANT: dataset changes are LIKELY to require # configuration changes. More... | |
list | upgrades_weapons_prefixes = ["Beam_Arrays_","Mounted_Guns_"] |
list | upgrades_weapons_postfixes = ["Light","Medium","Heavy"] |
string | upgrades_weapons_default_weapon = "laser" |
int | upgrades_weapons_default_weapon_count = 2 |
dictionary | shieldMaxLevel = { 2:14 , 4:14 } |
int | afterburnerMaxLevel = 5 |
string | upgrades_sensors_category = "upgrades/Sensors" |
list | upgrades_sensors_prefixes = [""] |
list | upgrades_sensors_postfixes = ["Common","Confed","Highborn","Rlaan"] |
int | reactorMaxLevel = 14 |
int | engineMaxLevel = 0 |
upgrades_hull_category = None | |
string | upgrades_turrets_category = "upgrades/Weapons/Turrets" |
int | armorMaxLevel = 5 |
string | upgrades_ammo_category_pri = "upgrades/Ammunition/Common" |
string | upgrades_ammo_category_sec = "upgrades/Ammunition" |
string | upgrades_repair_category_pri = "upgrades/Repair_Systems/Research" |
string | upgrades_repair_category_sec = "upgrades/Repair_Systems" |
def ship_upgrades.afterburnerBuildCategory | ( | level) |
Definition at line 65 of file ship_upgrades.py.
def ship_upgrades.afterburnerBuildName | ( | level) |
Definition at line 60 of file ship_upgrades.py.
def ship_upgrades.armorBuildCategory | ( | level) |
Definition at line 111 of file ship_upgrades.py.
def ship_upgrades.armorBuildName | ( | level) |
Definition at line 106 of file ship_upgrades.py.
def ship_upgrades.basicUnit | ( | un, | |
diff | |||
) |
Definition at line 270 of file ship_upgrades.py.
References vsrandom.random(), and UpgradeAfterburner().
def ship_upgrades.BuildDiffCat | ( | diff, | |
basecat, | |||
prefixes, | |||
postfixes, | |||
use_all = 1 , |
|||
dont_use_all = 0 |
|||
) |
Definition at line 177 of file ship_upgrades.py.
References GetDiffCargo(), and vsrandom.randrange().
def ship_upgrades.engineBuildCategory | ( | level) |
Definition at line 93 of file ship_upgrades.py.
def ship_upgrades.engineBuildName | ( | level) |
Definition at line 88 of file ship_upgrades.py.
def ship_upgrades.GetDiffCargo | ( | diff, | |
base_category, | |||
all_category, | |||
use_all, | |||
postfixes, | |||
dont_use_all = 0 |
|||
) |
Definition at line 151 of file ship_upgrades.py.
References vsrandom.randrange().
def ship_upgrades.GetDiffInt | ( | diff) |
# IMPLEMENTATION # #
Dataset changes are UNLIKELY to require # implementation changes.
In the following section # #
Definition at line 134 of file ship_upgrades.py.
References vsrandom.randrange().
def ship_upgrades.getItem | ( | cat, | |
parentcat = None |
|||
) |
Definition at line 164 of file ship_upgrades.py.
def ship_upgrades.getRandIncDec | ( | type) |
Definition at line 187 of file ship_upgrades.py.
def ship_upgrades.GetRandomAfterburner | ( | diff) |
Definition at line 202 of file ship_upgrades.py.
References afterburnerBuildName(), and GetDiffInt().
def ship_upgrades.GetRandomAmmo | ( | ) |
Definition at line 263 of file ship_upgrades.py.
def ship_upgrades.GetRandomArmor | ( | diff) |
Definition at line 257 of file ship_upgrades.py.
References armorBuildName(), and GetDiffInt().
def ship_upgrades.getRandomEngine | ( | diff) |
Definition at line 223 of file ship_upgrades.py.
References engineBuildName(), GetDiffInt(), and reactorBuildName().
def ship_upgrades.GetRandomHull | ( | ) |
Definition at line 251 of file ship_upgrades.py.
References getItem().
def ship_upgrades.getRandomRadar | ( | diff) |
Definition at line 205 of file ship_upgrades.py.
References BuildDiffCat(), debug.debug, and getItem().
def ship_upgrades.GetRandomRepairSys | ( | ) |
Definition at line 266 of file ship_upgrades.py.
def ship_upgrades.GetRandomShield | ( | faces, | |
type | |||
) |
Definition at line 198 of file ship_upgrades.py.
References shieldBuildName().
def ship_upgrades.GetRandomTurret | ( | ) |
Definition at line 254 of file ship_upgrades.py.
References getItem().
def ship_upgrades.GetRandomWeapon | ( | diff) |
Definition at line 180 of file ship_upgrades.py.
References BuildDiffCat(), debug.debug, and getItem().
def ship_upgrades.GetShieldLevelZero | ( | faces) |
Definition at line 195 of file ship_upgrades.py.
References shieldBuildName().
def ship_upgrades.reactorBuildCategory | ( | level) |
Definition at line 82 of file ship_upgrades.py.
def ship_upgrades.reactorBuildName | ( | level) |
Definition at line 77 of file ship_upgrades.py.
def ship_upgrades.shieldBuildCategory | ( | faces, | |
level | |||
) |
Definition at line 50 of file ship_upgrades.py.
def ship_upgrades.shieldBuildName | ( | faces, | |
level | |||
) |
Definition at line 43 of file ship_upgrades.py.
def ship_upgrades.UpgradeAfterburner | ( | un, | |
diff | |||
) |
def ship_upgrades.UpgradeArmor | ( | un, | |
diff | |||
) |
def ship_upgrades.UpgradeEngine | ( | un, | |
diff | |||
) |
Definition at line 229 of file ship_upgrades.py.
References debug.debug, GetShieldLevelZero(), and locale.str().
def ship_upgrades.upgradeHelper | ( | un, | |
mycargo, | |||
curmount, | |||
creds, | |||
force, | |||
cycle | |||
) |
Definition at line 285 of file ship_upgrades.py.
def ship_upgrades.UpgradeRadar | ( | un, | |
diff | |||
) |
def ship_upgrades.upgradeUnit | ( | un, | |
diff | |||
) |
Definition at line 296 of file ship_upgrades.py.
References basicUnit(), GetRandomAmmo(), GetRandomArmor(), GetRandomHull(), GetRandomRepairSys(), GetRandomTurret(), GetRandomWeapon(), and vsrandom.random().
int afterburnerMaxLevel = 5 |
Definition at line 58 of file ship_upgrades.py.
int armorMaxLevel = 5 |
Definition at line 104 of file ship_upgrades.py.
int engineMaxLevel = 0 |
Definition at line 86 of file ship_upgrades.py.
int reactorMaxLevel = 14 |
Definition at line 75 of file ship_upgrades.py.
dictionary shieldMaxLevel = { 2:14 , 4:14 } |
Definition at line 41 of file ship_upgrades.py.
string upgrades_ammo_category_pri = "upgrades/Ammunition/Common" |
Definition at line 116 of file ship_upgrades.py.
string upgrades_ammo_category_sec = "upgrades/Ammunition" |
Definition at line 117 of file ship_upgrades.py.
upgrades_hull_category = None |
Definition at line 97 of file ship_upgrades.py.
string upgrades_repair_category_pri = "upgrades/Repair_Systems/Research" |
Definition at line 120 of file ship_upgrades.py.
string upgrades_repair_category_sec = "upgrades/Repair_Systems" |
Definition at line 121 of file ship_upgrades.py.
string upgrades_sensors_category = "upgrades/Sensors" |
Definition at line 70 of file ship_upgrades.py.
list upgrades_sensors_postfixes = ["Common","Confed","Highborn","Rlaan"] |
Definition at line 72 of file ship_upgrades.py.
list upgrades_sensors_prefixes = [""] |
Definition at line 71 of file ship_upgrades.py.
string upgrades_turrets_category = "upgrades/Weapons/Turrets" |
Definition at line 100 of file ship_upgrades.py.
string upgrades_weapons_category = "upgrades/Weapons" |
# CONFIGURATION # #
IMPORTANT: dataset changes are LIKELY to require # configuration changes.
In the following section # is a list of required upgrade names and bits, # and also functions building the required names. # They're used throughout the code to compose # the upgrade names and categories. # #
Definition at line 33 of file ship_upgrades.py.
string upgrades_weapons_default_weapon = "laser" |
Definition at line 36 of file ship_upgrades.py.
int upgrades_weapons_default_weapon_count = 2 |
Definition at line 37 of file ship_upgrades.py.
list upgrades_weapons_postfixes = ["Light","Medium","Heavy"] |
Definition at line 35 of file ship_upgrades.py.
list upgrades_weapons_prefixes = ["Beam_Arrays_","Mounted_Guns_"] |
Definition at line 34 of file ship_upgrades.py.