Merge pull request #2848 from SagePtr/share-change

[Balance] Add CalculateShareMult to Field Work and Security Work
This commit is contained in:
hydroflame 2022-03-20 21:14:03 -04:00 committed by GitHub
commit 251aa6d862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,26 +25,19 @@ export function getHackingWorkRepGain(p: IPlayer, f: Faction): number {
export function getFactionSecurityWorkRepGain(p: IPlayer, f: Faction): number { export function getFactionSecurityWorkRepGain(p: IPlayer, f: Faction): number {
const t = const t =
(0.9 * (0.9 *
(p.hacking / CONSTANTS.MaxSkillLevel + (p.strength + p.defense + p.dexterity + p.agility +
p.strength / CONSTANTS.MaxSkillLevel + (p.hacking + p.intelligence) * CalculateShareMult()
p.defense / CONSTANTS.MaxSkillLevel + )
p.dexterity / CONSTANTS.MaxSkillLevel + ) / CONSTANTS.MaxSkillLevel / 4.5;
p.agility / CONSTANTS.MaxSkillLevel +
p.intelligence / CONSTANTS.MaxSkillLevel)) /
4.5;
return t * p.faction_rep_mult * mult(f) * p.getIntelligenceBonus(1); return t * p.faction_rep_mult * mult(f) * p.getIntelligenceBonus(1);
} }
export function getFactionFieldWorkRepGain(p: IPlayer, f: Faction): number { export function getFactionFieldWorkRepGain(p: IPlayer, f: Faction): number {
const t = const t =
(0.9 * (0.9 *
(p.hacking / CONSTANTS.MaxSkillLevel + (p.strength + p.defense + p.dexterity + p.agility + p.charisma +
p.strength / CONSTANTS.MaxSkillLevel + (p.hacking + p.intelligence) * CalculateShareMult()
p.defense / CONSTANTS.MaxSkillLevel + )
p.dexterity / CONSTANTS.MaxSkillLevel + ) / CONSTANTS.MaxSkillLevel / 5.5;
p.agility / CONSTANTS.MaxSkillLevel +
p.charisma / CONSTANTS.MaxSkillLevel +
p.intelligence / CONSTANTS.MaxSkillLevel)) /
5.5;
return t * p.faction_rep_mult * mult(f) * p.getIntelligenceBonus(1); return t * p.faction_rep_mult * mult(f) * p.getIntelligenceBonus(1);
} }