Skip to content

Commit

Permalink
**Codename Askellon** v0.0.37
Browse files Browse the repository at this point in the history
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
Eonfuzz committed Nov 20, 2020
1 parent 5a5a3cc commit f4219df
Show file tree
Hide file tree
Showing 28 changed files with 392 additions and 135 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ You'll need to have [node](https://nodejs.org/en/) and [git](https://git-scm.com
- Thanks to Mayday for being a boss
- Thanks to Maddeem for being a boss
- Thanks to Piggy for the Askellon Icon
- Thanks to ScrewTheTrees for treelib

And a special thanks to my awesome testers:
- Zach
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"mapFolder": "askellon-sector.w3x",
"gameExecutable": "E:\\Warcraft III\\_retail_\\x86_64\\Warcraft III.exe",
"outputFolder": "C:\\Users\\Travis\\Documents\\Warcraft III\\Maps\\Askellon",
"version": "0.0.33",
"version": "0.0.37",
"minifyScript": false,
"launchArgs": [
"-launch",
Expand Down
Binary file modified maps/askellon-sector.w3x/war3map.w3a
Binary file not shown.
Binary file modified maps/askellon-sector.w3x/war3map.w3h
Binary file not shown.
Binary file modified maps/askellon-sector.w3x/war3map.w3i
Binary file not shown.
Binary file modified maps/askellon-sector.w3x/war3map.w3q
Binary file not shown.
Binary file modified maps/askellon-sector.w3x/war3map.w3t
Binary file not shown.
Binary file modified maps/askellon-sector.w3x/war3map.w3u
Binary file not shown.
82 changes: 57 additions & 25 deletions maps/askellon-sector.w3x/war3map.wts
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,6 @@ STRING 149
Despair
}

STRING 150
// Buffs/Effects: B004 (Despair), Buffubertip (Tooltip - Extended)
{
You've been spooked! You are visible to the |cff6f2583Alien |rand have reduced armor.
}

STRING 151
// Abilities: A00D (Apply Despair), Name (Name)
{
Expand Down Expand Up @@ -4061,19 +4055,6 @@ STRING 1037
Purchase Minigun
}

STRING 1038
// Items: I00F (MG5-27 "Flamesaw" Pattern Minigun), Ubertip (Tooltip - Extended)
{
|cff808080Powered by galvanic rails, this old rifle has been in active circulation since the Yulvin succession wars.
Now many corporations produce upgrades and attachments that further improve upon its baseline functionality.|r

The standard issue rifle; ideal for thinning hordes and can dish out serious damage up close.
|cff00ff00- 6 shot burst
- Each shot does 18 damage
- Short cooldown|r
|n|cff00ffffCan be enhanced with |cffc81e1ekinetic|r|cff00ffff attachments.|r
}

STRING 1040
// Abilities: A01A (Attack - Minigun), Name (Name)
{
Expand Down Expand Up @@ -4554,12 +4535,6 @@ STRING 1144
E
}

STRING 1145
// Abilities: A01O (Adaptive Regeneration), Ubertip (Tooltip - Normal - Extended)
{
|cff808080LORE TODO|r|n|nInstantly|cff00ff00 heal 40%|r of your maximum hit points.|n|n|cff80808040 Seconds Cooldown|r
}

STRING 1147
// Abilities: A01O (Adaptive Regeneration), EditorSuffix (Editor Suffix)
{
Expand Down Expand Up @@ -6676,3 +6651,60 @@ STRING 1540
Is Alien Host
}

STRING 1541
// Items: I00F (MG5-27 "Flamesaw" Pattern Minigun), Ubertip (Tooltip - Extended)
{
|cff808080No matter the vessel, no matter the mission, Hexcorp security always tries to bring at least one Flamesaw along.
Hostile targets are obliterated by a hail of high-powered rounds, but the Flamesaw's true source of notoriety is its infamous cooling system, which causes ammunition to engulf targets in flames.|r

A heavy weapon designed for holding down corridors
|cff00ff00- Great Damage
- Sets targets alight while|r |cffd45e19Flamesaw|r|cff00ff00 is active
- Fires up to 250 rounds over 15 seconds|r
|cffc81e1e- Must stand still
- Turning reduces attack speed
- Unallies all units in the cone of fire|r
}

STRING 1542
// Abilities: A029 (Apply Void Sickness), Name (Name)
{
Apply Void Sickness
}

STRING 1543
// Buffs/Effects: B00E (Void Sickness), EditorName (Name (Editor Only))
{
Void Sickness
}

STRING 1544
// Buffs/Effects: B00E (Void Sickness), Bufftip (Tooltip)
{
Void Sickness
}

STRING 1547
// Buffs/Effects: B00E (Void Sickness), Buffubertip (Tooltip - Extended)
{
|cff808080Eugh you feel sick|r|nUnable to enter ships for |cffc81e1e30 seconds|r.
}

STRING 1548
// Abilities: A01O (Adaptive Regeneration), Ubertip (Tooltip - Normal - Extended)
{
|cff808080LORE TODO|r|n|nInstantly|cff00ff00 heal 40%|r of your maximum hit points.|n|n|cff80808080 Seconds Cooldown|r
}

STRING 1549
// Buffs/Effects: B004 (Despair), Buffubertip (Tooltip - Extended)
{
|cff808080What was that?!|r|n|cff8a6df2Aliens smell your fear|r and have |cffc81e1evision of you|r. Your |cffc81e1eaccuracy is reduced|r and you |cffc81e1ecannot communicate|r.
}

STRING 1550
// Upgrades: R00K (Troll Regeneration,Improved Troll Regeneration,Advanced Troll Regeneration), Name (Name)
{
Void Sickness
}

99 changes: 99 additions & 0 deletions project.log
Original file line number Diff line number Diff line change
Expand Up @@ -712,3 +712,102 @@
[2020-11-16 09:07:04] info: Transpiling TypeScript to Lua...
[2020-11-16 09:07:20] info: Building "askellon-sector.w3x"...
[2020-11-16 09:07:21] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-16 12:23:43] info: Transpiling TypeScript to Lua...
[2020-11-16 12:24:04] info: Building "askellon-sector.w3x"...
[2020-11-16 12:24:05] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-16 12:28:46] info: Transpiling TypeScript to Lua...
[2020-11-16 12:29:01] info: Building "askellon-sector.w3x"...
[2020-11-16 12:29:02] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-16 12:31:45] info: Transpiling TypeScript to Lua...
[2020-11-16 12:32:01] info: Building "askellon-sector.w3x"...
[2020-11-16 12:32:02] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-16 21:09:46] info: Transpiling TypeScript to Lua...
[2020-11-16 21:10:10] info: Building "askellon-sector.w3x"...
[2020-11-16 21:10:11] info: Creating w3x archive...
[2020-11-16 23:11:37] info: Transpiling TypeScript to Lua...
[2020-11-16 23:11:52] info: Building "askellon-sector.w3x"...
[2020-11-16 23:11:53] info: Creating w3x archive...
[2020-11-17 02:13:10] info: Transpiling TypeScript to Lua...
[2020-11-17 02:13:25] info: Building "askellon-sector.w3x"...
[2020-11-17 02:13:26] info: Creating w3x archive...
[2020-11-17 05:07:33] info: Transpiling TypeScript to Lua...
[2020-11-17 05:07:49] info: Building "askellon-sector.w3x"...
[2020-11-17 05:07:52] info: Creating w3x archive...
[2020-11-17 22:20:20] info: Transpiling TypeScript to Lua...
[2020-11-17 22:20:45] info: Building "askellon-sector.w3x"...
[2020-11-17 22:21:16] info: Creating w3x archive...
[2020-11-18 02:06:12] info: Transpiling TypeScript to Lua...
[2020-11-18 02:06:27] info: Building "askellon-sector.w3x"...
[2020-11-18 02:06:30] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 22:49:00] info: Transpiling TypeScript to Lua...
[2020-11-19 22:49:18] info: Building "askellon-sector.w3x"...
[2020-11-19 22:49:20] info: Creating w3x archive...
[2020-11-19 23:14:34] info: Transpiling TypeScript to Lua...
[2020-11-19 23:14:58] info: Building "askellon-sector.w3x"...
[2020-11-19 23:14:59] info: Creating w3x archive...
[2020-11-19 23:24:24] info: Transpiling TypeScript to Lua...
[2020-11-19 23:24:41] info: Building "askellon-sector.w3x"...
[2020-11-19 23:24:41] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:29:29] info: Transpiling TypeScript to Lua...
[2020-11-19 23:29:45] info: Building "askellon-sector.w3x"...
[2020-11-19 23:29:45] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:32:49] info: Transpiling TypeScript to Lua...
[2020-11-19 23:33:05] info: Building "askellon-sector.w3x"...
[2020-11-19 23:33:06] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:37:03] info: Transpiling TypeScript to Lua...
[2020-11-19 23:37:18] info: Building "askellon-sector.w3x"...
[2020-11-19 23:37:18] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:39:50] info: Transpiling TypeScript to Lua...
[2020-11-19 23:40:06] info: Building "askellon-sector.w3x"...
[2020-11-19 23:40:07] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:42:08] info: Transpiling TypeScript to Lua...
[2020-11-19 23:42:24] info: Building "askellon-sector.w3x"...
[2020-11-19 23:42:24] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:44:19] info: Transpiling TypeScript to Lua...
[2020-11-19 23:44:35] info: Building "askellon-sector.w3x"...
[2020-11-19 23:44:35] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:48:34] info: Transpiling TypeScript to Lua...
[2020-11-19 23:48:50] info: Building "askellon-sector.w3x"...
[2020-11-19 23:48:51] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:52:38] info: Transpiling TypeScript to Lua...
[2020-11-19 23:52:53] info: Building "askellon-sector.w3x"...
[2020-11-19 23:52:54] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:55:35] info: Transpiling TypeScript to Lua...
[2020-11-19 23:55:51] info: Building "askellon-sector.w3x"...
[2020-11-19 23:55:51] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-19 23:58:09] info: Transpiling TypeScript to Lua...
[2020-11-19 23:58:26] info: Building "askellon-sector.w3x"...
[2020-11-19 23:58:26] info: Creating w3x archive...
[2020-11-20 00:09:53] info: Transpiling TypeScript to Lua...
[2020-11-20 00:10:12] info: Building "askellon-sector.w3x"...
[2020-11-20 00:10:12] info: Creating w3x archive...
[2020-11-20 00:23:16] info: Transpiling TypeScript to Lua...
[2020-11-20 00:23:32] info: Building "askellon-sector.w3x"...
[2020-11-20 00:23:33] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:29:51] info: Transpiling TypeScript to Lua...
[2020-11-20 00:30:07] info: Building "askellon-sector.w3x"...
[2020-11-20 00:30:07] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:34:44] info: Transpiling TypeScript to Lua...
[2020-11-20 00:34:59] info: Building "askellon-sector.w3x"...
[2020-11-20 00:35:00] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:40:29] info: Transpiling TypeScript to Lua...
[2020-11-20 00:40:44] info: Building "askellon-sector.w3x"...
[2020-11-20 00:40:45] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:45:06] info: Transpiling TypeScript to Lua...
[2020-11-20 00:45:22] info: Building "askellon-sector.w3x"...
[2020-11-20 00:45:22] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:50:05] info: Transpiling TypeScript to Lua...
[2020-11-20 00:50:20] info: Building "askellon-sector.w3x"...
[2020-11-20 00:50:21] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:57:14] info: Transpiling TypeScript to Lua...
[2020-11-20 00:57:29] info: Building "askellon-sector.w3x"...
[2020-11-20 00:57:30] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 00:59:17] info: Transpiling TypeScript to Lua...
[2020-11-20 00:59:33] info: Building "askellon-sector.w3x"...
[2020-11-20 00:59:34] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 01:06:22] info: Transpiling TypeScript to Lua...
[2020-11-20 01:06:37] info: Building "askellon-sector.w3x"...
[2020-11-20 01:06:38] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
[2020-11-20 01:09:14] info: Transpiling TypeScript to Lua...
[2020-11-20 01:09:30] info: Building "askellon-sector.w3x"...
[2020-11-20 01:09:30] info: Launching map "E:/codename-askellon/dist/askellon-sector.w3x"...
26 changes: 12 additions & 14 deletions src/app/abilities/station/scan-for-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,18 @@ export class StationSecurityScanForPlayer implements Ability {
MessageAllPlayers(`Scan Complete.`);
if (!this.isScanningForAliens) {
Players.forEach(p => {
if (p.slotState != PLAYER_SLOT_STATE_EMPTY && p.controller == MAP_CONTROL_USER) {
const crew = PlayerStateFactory.getCrewmember(p);
if (crew) {
const pData = PlayerStateFactory.get(p);
const pMain = PlayerStateFactory.get(p).getUnit();
if (pMain && crew && crew.unit && crew.unit.isAlive() && crew.unit === pMain) {
if (p.id < PLAYER_RGB.length) {
const c = PLAYER_RGB[p.id];
if (c) PingMinimapEx(u.x, u.y, 6, c[0], c[1], c[2], false);
}
else {
Log.Warning(`${p.id} not in rgb colour array`);
}
}
const pData = PlayerStateFactory.get(p);
if (!pData) return;

const crew = pData.getCrewmember();
const pMain = pData.getUnit();
if (pData && crew && crew.unit && crew.unit.isAlive() && crew.unit === pMain) {
if (p.id < PLAYER_RGB.length) {
const c = PLAYER_RGB[p.id];
if (c) PingMinimapEx(pMain.x, pMain.y, 6, c[0], c[1], c[2], false);
}
else {
Log.Warning(`${p.id} not in rgb colour array`);
}
}
})
Expand Down
62 changes: 62 additions & 0 deletions src/app/buff/buffs/void-sickness.ts
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);
}
}
}
2 changes: 2 additions & 0 deletions src/app/buff/dynamic-buff-entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { PuritySeal } from "./buffs/purity-seal";
import { onFire } from "./buffs/fire";
import { DynamicBuffState } from "./dynamic-buff-state";
import { Hooks } from "lib/Hooks";
import { VoidSickness } from "./buffs/void-sickness";

export class DynamicBuffEntity extends Entity {

Expand Down Expand Up @@ -47,6 +48,7 @@ export class DynamicBuffEntity extends Entity {
if (id === BUFF_ID.DESPAIR) return new Despair(who);
if (id === BUFF_ID.RESOLVE) return new Resolve(who);
if (id === BUFF_ID.PURITY_SEAL) return new PuritySeal();
if (id === BUFF_ID.VOID_SICKNESS) return new VoidSickness();
Log.Error("Creating new buff no instance for ID "+id);
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/force/force-entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ export class ForceEntity extends Entity {
const pData = PlayerStateFactory.get(who);
if (pData && pData.getForce() && pData.getForce().is(OBSERVER_FORCE_NAME)) return false;

const playerLeaveSound = new SoundRef('Sound\\Interface\\QuestFailed.flac', false, true);
playerLeaveSound.playSound();
// const playerLeaveSound = new SoundRef('Sound\\Interface\\QuestFailed.flac', false, true);
// playerLeaveSound.playSound();

Players.forEach(player => {
ChatEntity.getInstance().postSystemMessage(player, `|cff${PLAYER_COLOR[who.id]}${PlayerStateFactory.get(who).originalName}|r has left the game!`);
Expand Down
Loading

0 comments on commit f4219df

Please sign in to comment.