Skip to content

Commit

Permalink
fix: Lock the HUD down when in vampire lord form (#109)
Browse files Browse the repository at this point in the history
This fixes #100 : handle being a vampire lord more gracefully.

Added two new checks to the player conveniences: `isVampireLord()` and 
`isWerewolf()`. These check the player's race and return true if appropriate. 
Put the vampire lord check to work in deciding if we should respond to 
keystrokes at all. This effectively locks the HUD out. The HUD cannot do 
anything useful for vampire lords, because they are restricted to a tiny handful 
of spells and powers, all of which must be selected from the favorites menu.

While testing this work, observed some things with vampire spells that could 
be better. This resulted in some new icons, some color selection reworks, 
and a bit of code cleanup.
  • Loading branch information
ceejbot authored Jan 13, 2024
1 parent a59b298 commit 090faf9
Show file tree
Hide file tree
Showing 21 changed files with 413 additions and 279 deletions.
12 changes: 10 additions & 2 deletions installer/core/SoulsyHUD_KID.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
; These keywords were ones I did before integrating with OCF.
; I should see if I can remove them.
; I comment them out as I find OCF tags that can do the same work.
Keyword = Soulsy_Archetype_CarryWeight|Magic Effect|CarryWeight
Keyword = Soulsy_Archetype_Detect|Magic Effect|*Detect
Keyword = Soulsy_Archetype_Detect|Magic Effect|DetectLife
Expand All @@ -8,7 +8,7 @@ Keyword = Soulsy_Archetype_Guide|Magic Effect|Guide
Keyword = Soulsy_Archetype_Light|Magic Effect|Light
Keyword = Soulsy_Archetype_NightEye|Magic Effect|NightEye
;Keyword = Soulsy_Archetype_Protect|Magic Effect|
Keyword = Soulsy_Archetype_Reanimate|Magic Effect|*Reanimate
;Keyword = Soulsy_Archetype_Reanimate|Magic Effect|*Reanimate
Keyword = Soulsy_Archetype_Reflect|Magic Effect|ReflectDamage
Keyword = Soulsy_Archetype_Resist|Magic Effect|*Resist
Keyword = Soulsy_Archetype_Root|Magic Effect|*Root
Expand Down Expand Up @@ -39,6 +39,7 @@ Keyword = Soulsy_BoundGreatword|Magic Effect|*BoundGreatsword
; for misc mods not yet covered by OCF that I use.
; mcCampingLight.esp
Keyword = OCF_MgefPowerAction_PitchTent|Magic Effect|mcguff_camp_buildcamp

; EldenLantern.esp
Keyword = OCF_ToolLantern|Armor|EldenRingLantern.esp
Keyword = OCF_InvColorBlue|Armor|0x80e~EldenRingLantern.esp
Expand All @@ -47,6 +48,13 @@ Keyword = OCF_InvColorRed|Armor|0x809~EldenRingLantern.esp
Keyword = OCF_InvColorSun|Armor|0xD63~EldenRingLantern.esp
Keyword = OCF_InvColorWhite|Armor|0x805~EldenRingLantern.esp

; Effects granted by some minor powers and spells
; Bats vampire lord spell "Bats Effect" [MGEF:0200E654]
Keyword = Soulsy_Power_Bats|Magic Effect|DLC1BatsEffect
;Keyword = Soulsy_Power_Vampire|Spell|DLC1VampireChange|NONE|100
;Keyword = Soulsy_Power_Vampire|Magic Effect|DLC1VampireChangeEffect|NONE|100
;Keyword = Soulsy_Power_RevertForm|Spell|DLC1RevertForm|NONE|100

; Spells associated with shouts.
; We can't assign keywords to shouts directly, so we use their spells.

Expand Down
12 changes: 12 additions & 0 deletions installer/icon-pack-soulsy/misc_book.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions installer/icon-pack-soulsy/power_bats.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 090faf9

Please sign in to comment.