Skip to content

Wannabe Edgerunner Add-on - initial changes for review#8

Open
DigitalVixenSWE wants to merge 1 commit intodjkovrik:masterfrom
DigitalVixenSWE:wannabe-edgerunner-addon
Open

Wannabe Edgerunner Add-on - initial changes for review#8
DigitalVixenSWE wants to merge 1 commit intodjkovrik:masterfrom
DigitalVixenSWE:wannabe-edgerunner-addon

Conversation

@DigitalVixenSWE
Copy link
Copy Markdown

First PR for the new wannabe add-on. For DJK review.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
// Wannabe Edgerunner Add-on - neuroblocker quality tracker (;¬_¬)
// watches for neuroblocker status effects applying/removing so we know which tier is active

module Edgerunning.System
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be more convenient to use a unique module name for WEA so we can conditionally wrap some stuff inside EdgerunningSystem

private persistent let humanityRestoringActionTakenShower: Bool = false;

// WEA Add-on fields (˘ω˘)
public let m_weaSleepPending: Bool;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other fields are not using Hungarian notation so maybe rename this to similar naming for everything


this.ScheduleHumanityRestoreEffect(psychoDuration + 3.0);

// WEA: hostility pulse - broadcast combat stims so nearby NPCs react to psychosis (╯°□°)╯︵ ┻━┻
Copy link
Copy Markdown
Owner

@djkovrik djkovrik Apr 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If WEA get its own module name then we can do something like this (just throwing some ideas off top of my head):

  1. Move all WEA new logic to a separate functions
  2. Add conditions for those funcs like this:
@if(ModuleExists("WeaModuleName"))
private func SomeFuncWithNewLogic() -> Void {
   // this one has an actual logic needed for WEA
}

@if(!ModuleExists("WeaModuleName"))
private func SomeFuncWithNewLogic() -> Void {
   // this one has empty body with no logic
}
  1. Replace all new logic chunks inside EdgerunningSystem with conditional funcs calls

}

public func OnRestoreAction(action: HumanityRestoringAction) -> Void {
// WEA: sleep verification - must actually sleep, not just tap the bed (¬_¬)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same, needs wrapper func for conditional compilation (and a few other places inside EdgerunningSystem)

}

// WEA Add-on helpers ٩(。•́‿•̀。)۶
public func WEA_GetSmokeCount() -> Int32 { return this.m_weaSmokeCount; }
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just merge all helpers as is with no conditions, just won't be used if no WEA installed

@djkovrik
Copy link
Copy Markdown
Owner

Things to check after all changes:

  • WE + WEA are compiled okay
  • WE is compiled okay when WEA not installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants