Skip to content

Commit

Permalink
feat: Mod done
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkborderman committed May 28, 2023
0 parents commit fc45b79
Show file tree
Hide file tree
Showing 26 changed files with 602 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* linguist-detectable
18 changes: 18 additions & 0 deletions .github/workflows/github-repo-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Update Github repository information

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update Github repo info
uses: Darkborderman/github-actions/github-repo-info@master
env:
YML_PATH: metadata.yml
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gradle/
build/

# artifacts
jars/
bin/
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"java.project.sourcePaths": ["src"],
"java.project.referencedLibraries": [
"lib/*.jar"
]
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Darkborderman

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Starsector-SkillParameterized

Make most character's skills configurable in Starsector.
44 changes: 44 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
repositories {
mavenCentral()
}

apply plugin: 'java'

// project level config
sourceSets.main.java.srcDir 'src'
sourceCompatibility = 1.7
targetCompatibility = 1.7
archivesBaseName = 'skillparameterized'

build {
doLast {
copy {
from jar
into 'jars'
}
}
}

task release(type: Zip) {
description 'Create releaseable zip file.'
def cmdOutput = 'jq -rj .version mod_info.json'.execute().text
from '.'
include 'src/'
include 'data/'
include 'graphics/'
include 'sounds/'
include 'jars/'
include 'mod_info.json'
archiveName archivesBaseName + '-' + cmdOutput + '.zip'
destinationDir(file('bin/'))
}

clean {
description 'Cleanup files'
delete fileTree('jars/') { include '*.jar' }
delete fileTree('bin/') { include '*.zip' }
}

dependencies {
implementation fileTree(dir: './lib/', include: '*.jar')
}
240 changes: 240 additions & 0 deletions data/config/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
{
# The following skill definition is order by
# 1. Shared configuration across skills
# 2. Skill category
# 3. Skill order in character UI
# 4. Misc skills which are not available for character (usually for AI)

# Shared configuration
"Shared": {
# Affects CarrierGroup, FighterUplink
"FIGHTER_BAYS_THRESHOLD": 8, # default 8
# Affects TacticalDrills, CrewTraining, FluxRegulation
"OP_THRESHOLD": 240, # default 240
# Affects FieldRepairs, ContainmentProcedures
"OP_ALL_THRESHOLD": 240
},
# Combat
"Helmsmanship": {
"MANEUVERABILITY_BONUS": 50, # default 50
"SPEED_BONUS": 10, # default 10
"ELITE_SPEED_BONUS_FLAT": 5, # default 5
"ZERO_FLUX_LEVEL": 1 # default 1
},
"CombatEndurance": {
"PEAK_TIME_BONUS": 60, # default 60
"DEGRADE_REDUCTION_PERCENT": 25, # default 25
"MAX_CR_BONUS": 15, # default 15
"MAX_REGEN_LEVEL": 0.5, # default 0.5
"REGEN_RATE": 0.005, # default 0.005
"TOTAL_REGEN_MAX_POINTS": 2000, # default 2000
"TOTAL_REGEN_MAX_HULL_FRACTION": 0.5 # default 0.5
},
"ImpactMitigation": {
"MANEUVERABILITY_BONUS_LARGE": 50, # default 50
"MANEUVERABILITY_BONUS_SMALL": 25, # default 25
"MAX_DAMAGE_REDUCTION_BONUS": 0.05, # default 0.05
"ARMOR_DAMAGE_REDUCTION": 25, # default 25
"ARMOR_KINETIC_REDUCTION": 50, # default 50
"DAMAGE_TO_MODULES_REDUCTION": 50 # default 50
},
"DamageControl": {
"SECONDS_PER_PROC": 2, # default 2
"INSTA_REPAIR": 0.25, # default 0.25
"CREW_LOSS_REDUCTION": 50, # default 50
"MODULE_REPAIR_BONUS": 50, # default 50
"HULL_DAMAGE_REDUCTION": 25, # default 25
"ELITE_DAMAGE_THRESHOLD": 500, # default 500
"ELITE_DAMAGE_REDUCTION_PERCENT": 60 # default 60
},
"FieldModulation": {
"SHIELD_DAMAGE_REDUCTION": 15, # default 15
"FLUX_SHUNT_DISSIPATION": 15, # default 15
"PHASE_FLUX_UPKEEP_REDUCTION": 25, # default 25
"PHASE_COOLDOWN_REDUCTION": 50 # default 50
},
"PointDefense": {
"FIGHTER_DAMAGE_BONUS": 50, # default 50
"MISSILE_DAMAGE_BONUS": 50, # default 50
"PD_RANGE_BONUS_FLAT": 200 # default 200
},
"TargetAnalysis": {
# This skill does not expose any variable that can be modified
# Thus leave it empty here
},
"BallisticMastery": {
"PROJ_SPEED_BONUS": 33, # default 33
"DAMAGE_BONUS": 10, # default 10
"RANGE_BONUS": 10 # default 10
},
"SystemsExpertise": {
"BONUS_CHARGES": 1, # default 1, in-game description doesn't update
"REGEN_PERCENT": 50, # default 50
"SYSTEM_COOLDOWN_REDUCTION_PERCENT": 33, # default 33
"RANGE_PERCENT": 50, # default 50
"PEAK_TIME_BONUS": 30, # default 30
"OVERLOAD_REDUCTION": 25, # default 25
"MALFUNCTION_CHANCE_MULT": 0.5 # default 0.5
},
"MissileSpecialization": {
# This skill does not expose any variable that can be modified
# Thus leave it empty here
},
# Leadership
"TacticalDrills": {
"DAMAGE_PERCENT": 5, # default 5
"ATTACK_BONUS": 50, # default 50
"CASUALTIES_MULT": 0.75 # default 0.75
},
"CoordinatedManeuvers": {
"NAV_FRIGATES": 6, # default 6
"NAV_DESTROYERS": 3, # default 3
"NAV_OTHER": 1, # default 1
"CP_REGEN_FRIGATES": 50, # default 50
"CP_REGEN_DESTROYERS": 25 # default 25
},
"WolfpackTactics": {
"DAMAGE_TO_LARGER_BONUS": 20, # default 20
"DAMAGE_TO_LARGER_BONUS_DEST": 10, # default 10
"PEAK_TIME_BONUS": 50, # default 50
"PEAK_TIME_BONUS_DEST": 25 # default 25
},
"CrewTraining": {
"CR_PERCENT": 15 # default 15
},
"CarrierGroup": {
"REPLACEMENT_RATE_PERCENT": 50, # default 50
"OFFICER_MULT": 1.5 # default 1.5
},
"FighterUplink": {
"MAX_SPEED_PERCENT": 20, # default 20
"CREW_LOSS_PERCENT": 50, # default 50
"TARGET_LEADING_BONUS": 50 # default 50
},
"OfficerTraining": {
# This skill does not expose any variable that can be modified
# Thus leave it empty here
},
"OfficerManagement": {
"NUM_OFFICERS_BONUS": 2, # default 2
"CP_BONUS": 2 # default 2
},
"BestOfTheBest": {
"EXTRA_MODS": 1, # default 1
"DEPLOYMENT_BONUS": 0.1 # default 0.1
},
"SupportDoctrine": {
"COMMAND_POINT_REGEN_PERCENT": 100, # default 100
"DP_REDUCTION": 0.2, # default 0.2
"DP_REDUCTION_MAX": 10 # default 10
},
# Technology
"Navigation": {
"TERRAIN_PENALTY_REDUCTION": 30, # default 30
"FLEET_BURN_BONUS": 1, # default 1
"SB_BURN_BONUS": 1 # default 1
},
"Sensors": {
"DETECTED_BONUS": 25, # default 25
"SENSOR_BONUS": 25, # default 25
"SLOW_BURN_BONUS": 3 # default 3
},
"GunneryImplants": {
"RECOIL_BONUS": 25, # default 25
"TARGET_LEADING_BONUS": 100, # default 100
"RANGE_BONUS": 15, # default 15
"EW_FRIGATES": 4, # default 4
"EW_DESTROYERS": 2, # default 2
"EW_OTHER": 1 # default 1
},
"EnergyWeaponMastery": {
"ENERGY_DAMAGE_PERCENT": 30, # default 30
"MIN_RANGE": 600, # default 600
"MAX_RANGE": 1000 # default 1000
},
"ElectronicWarfare": {
"PER_SHIP_BONUS": 1 # default 1
},
"FluxRegulation": {
"VENTS_BONUS": 5, # default 5
"CAPACITORS_BONUS": 5, # default 5
"DISSIPATION_PERCENT": 10, # default 10
"CAPACITY_PERCENT": 10 # default 10
},
"PhaseCoilTuning": {
"PHASE_OP_THRESHOLD": 40, # default 40
"PHASE_SPEED_BONUS": 50, # default 50
"PEAK_TIME_BONUS": 180, # default 180
"PHASE_SHIP_SENSOR_BONUS_PERCENT": 100 # default 100
},
"CyberneticAugmentation": {
"MAX_ELITE_SKILLS_BONUS": 2 # default 2
},
"NeuralLink": {
"INSTANT_TRANSFER_DP": 50 # default 50
},
"AutomatedShips": {
"AUTOMATED_POINTS_THRESHOLD": 200, # default 200
"MAX_CR_BONUS": 100 # default 100
},
# Industry
"BulkTransport": {
"CARGO_CAPACITY_MAX_PERCENT": 50, # default 50
"CARGO_CAPACITY_THRESHOLD": 2000, # default 2000
"FUEL_CAPACITY_MAX_PERCENT": 50, # default 50
"FUEL_CAPACITY_THRESHOLD": 2000, # default 2000
"PERSONNEL_CAPACITY_MAX_PERCENT": 50, # default 50
"PERSONNEL_CAPACITY_THRESHOLD": 5000, # default 5000
"BURN_BONUS": 2 # default 2
},
"Salvaging": {
"CREW_LOSS_REDUCTION": 75, # default 75
"SALVAGE_BONUS": 50 # default 50
},
"FieldRepairs": {
# This skill does not expose any variable that can be modified
# Thus leave it empty here
},
"OrdnanceExpertise": {
"FLUX_PER_OP": 2, # default 2
"CAP_PER_OP": 20 # default 20
},
"PolarizedArmor": {
"EFFECTIVE_ARMOR_BONUS": 50, # default 50
"EMP_BONUS_PERCENT": 50, # default 50
"VENT_RATE_BONUS": 25, # default 25
"NON_SHIELD_FLUX_LEVEL": 50 # default 50
},
"ContainmentProcedures": {
"CREW_LOSS_REDUCTION": 50, # default 50
"FUEL_USE_REDUCTION_MAX_PERCENT": 50, # default 50
"FUEL_USE_REDUCTION_MAX_FUEL": 25, # default 25
"FUEL_SALVAGE_BONUS": 25 # default 25
},
"MakeshiftEquipment": {
"SUPPLY_USE_REDUCTION_MAX_PERCENT": 50, # default 50
"SUPPLY_USE_REDUCTION_MAX_UNITS": 100, # default 100
"SURVEY_COST_MULT": 0.5 # default 0.5
},
"IndustrialPlanning": {
"SUPPLY_BONUS": 1, # default 1
"CUSTOM_PRODUCTION_BONUS": 50 # default 50
},
"HullRestoration": {
"CR_PER_SMOD": 5, # default 5
"DMOD_AVOID_MAX": 0.9, # default 0.9
"DMOD_AVOID_MIN": 0.75, # default 0.75
"DMOD_AVOID_MIN_DP": 5, # default 5
"DMOD_AVOID_MAX_DP": 60 # default 60
},
"DerelictOperations": {
"MINUS_DP_PERCENT_PER_DMOD": 6 # default 6
},
# Misc Skill
"Hypercognition": { # Alpha core colony skill
"ACCESS": 0.1, # default 0.1
"FLEET_SIZE": 20, # default 20
"DEFEND_BONUS": 50, # default 50
"STABILITY_BONUS": 1 # default 1
}
}
Binary file added lib/commons-compiler-jdk.jar
Binary file not shown.
Binary file added lib/commons-compiler.jar
Binary file not shown.
Binary file added lib/fs.common_obf.jar
Binary file not shown.
Binary file added lib/fs.sound_obf.jar
Binary file not shown.
Binary file added lib/janino.jar
Binary file not shown.
Binary file added lib/jinput.jar
Binary file not shown.
Binary file added lib/jogg-0.0.7.jar
Binary file not shown.
Binary file added lib/jorbis-0.0.15.jar
Binary file not shown.
Binary file added lib/json.jar
Binary file not shown.
Binary file added lib/log4j-1.2.9.jar
Binary file not shown.
Binary file added lib/lwjgl.jar
Binary file not shown.
Binary file added lib/lwjgl_util.jar
Binary file not shown.
Binary file added lib/starfarer.api.jar
Binary file not shown.
Binary file added lib/starfarer_obf.jar
Binary file not shown.
Binary file added lib/xstream-1.4.10.jar
Binary file not shown.
12 changes: 12 additions & 0 deletions metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
github:
description: Make most character's skills configurable in Starsector.
enable_discussions: false
enable_issues: false
enable_projects: false
enable_wiki: false
homepage: https://github.com/DarkbordermanModding/Starsector-SkillParameterized
template: false
topics:
- mod
- starsector
- starsector-mod
10 changes: 10 additions & 0 deletions mod_info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "darkborderman.skillparameterized",
"name": "Skill Parameterized",
"author": "Darkborderman",
"version": "0.0.0",
"description": "Make most character's skills configurable in Starsector.",
"gameVersion": "0.96a-RC10",
"jars": ["jars/skillparameterized.jar"],
"modPlugin": "mod.skillparameterized.SkillPlugin"
}
Loading

0 comments on commit fc45b79

Please sign in to comment.