-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Balance and Bugfix pass - Reduced most healing in the game > No more yakkity sax - Nano-Med cooldown from 30 to 50 - Nano-Med purchase cooldown from 50 to 120 - All Alien Forms base HP regeneration reduced from 3/s to 0.5/s - Instant Regeneration Gene power cooldown from 50 to 80 - Entering and Exiting ships gives you **Void Sickness** for 30 seconds > You cannot enter any ships while under the influence of **Void Sickness** - Reduced selling price of all items from 50% to 25% > People were rushing weapon damage upgrades by selling spawned items, it's still possible but not as lucrative Bug Fixes - Fixed evolving from bugging the game - Updated Minigun purchasing tooltip - Mining laser should no longer visually glitch - Mining laser should now correctly break once you've moved too far
- Loading branch information
Showing
28 changed files
with
392 additions
and
135 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,62 @@ | ||
import { BUFF_ID, BUFF_ID_RESOLVE, BUFF_ID_PURITY_SEAL, BUFF_ID_VOID_SICKNESS } from "resources/buff-ids"; | ||
import { Unit, Trigger } from "w3ts/index"; | ||
import { SFX_FLASH_HEAL } from "resources/sfx-paths"; | ||
import { getZFromXY } from "lib/utils"; | ||
import { TECH_MAJOR_RELIGION, ABIL_VOID_SICKNESS_APPLY } from "resources/ability-ids"; | ||
import { CREWMEMBER_UNIT_ID } from "resources/unit-ids"; | ||
import { ResearchFactory } from "app/research/research-factory"; | ||
import { EventEntity } from "app/events/event-entity"; | ||
import { DynamicBuff } from "../dynamic-buff-type"; | ||
import { EventListener } from "app/events/event-type"; | ||
import { EVENT_TYPE } from "app/events/event-enum"; | ||
import { ChatEntity } from "app/chat/chat-entity"; | ||
import { BuffInstance } from "../buff-instance-type"; | ||
import { DummyCast } from "lib/dummy"; | ||
import { UPGR_DUMMY_VOID_SICKNESS } from "resources/upgrade-ids"; | ||
import { Log } from "lib/serilog/serilog"; | ||
|
||
export class VoidSickness extends DynamicBuff { | ||
id = BUFF_ID.PURITY_SEAL; | ||
|
||
protected doesStack = false; | ||
|
||
public addInstance(unit: Unit, instance: BuffInstance, isNegativeInstance?: boolean) { | ||
super.addInstance(unit, instance, isNegativeInstance); | ||
} | ||
|
||
public process(gametime: number, delta: number): boolean { | ||
const result = super.process(gametime, delta); | ||
if (!this.isActive) return result; | ||
if (!UnitHasBuffBJ(this.who.handle, BUFF_ID_VOID_SICKNESS)) { | ||
DummyCast((dummy: unit) => { | ||
SetUnitX(dummy, this.who.x); | ||
SetUnitY(dummy, this.who.y + 50); | ||
IssueTargetOrder(dummy, "faeriefire", this.who.handle); | ||
}, ABIL_VOID_SICKNESS_APPLY); | ||
} | ||
return result; | ||
} | ||
|
||
public onStatusChange(newStatus: boolean) { | ||
if (newStatus) { | ||
DummyCast((dummy: unit) => { | ||
SetUnitX(dummy, this.who.x); | ||
SetUnitY(dummy, this.who.y + 50); | ||
IssueTargetOrder(dummy, "faeriefire", this.who.handle); | ||
}, ABIL_VOID_SICKNESS_APPLY); | ||
this.who.owner.setTechResearched(UPGR_DUMMY_VOID_SICKNESS, | ||
this.who.owner.getTechCount(UPGR_DUMMY_VOID_SICKNESS, true) + 1 | ||
); | ||
// Log.Information("Void sickness tech level "+(this.who.owner.getTechCount(UPGR_DUMMY_VOID_SICKNESS, true))) | ||
} | ||
else { | ||
|
||
this.who.owner.setTechResearched(UPGR_DUMMY_VOID_SICKNESS, | ||
this.who.owner.getTechCount(UPGR_DUMMY_VOID_SICKNESS, true) - 1 | ||
); | ||
// Log.Information("down sickness tech level "+(this.who.owner.getTechCount(UPGR_DUMMY_VOID_SICKNESS, true))) | ||
// Remove purity buff | ||
UnitRemoveBuffBJ(BUFF_ID_VOID_SICKNESS, this.who.handle); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.