Better AI Program Blackboxing (#28982)

* Better AI Program Blackboxing

* Bad duplicates

* Bad var
This commit is contained in:
PollardTheDragon
2025-04-13 12:36:40 +00:00
committed by GitHub
parent 1e1de1059f
commit 3d3095b459
@@ -143,7 +143,6 @@
return TRUE
// No same active program found, install the new active power.
SSblackbox.record_feedback("tally", "ai_program_installed", 1, new_spell.name)
program.upgrade(A, first_install = TRUE) // Usually does nothing for actives, but is needed for hybrid abilities like the enhanced tracker
A.AddSpell(new_spell)
to_chat(A, program.unlock_text)
@@ -161,7 +160,6 @@
to_chat(A, "<span class='warning'>You cannot afford this upgrade!</span>")
return FALSE
program.upgrade(A)
SSblackbox.record_feedback("tally", "ai_program_upgrade", 1, "[program.type]")
to_chat(A, program.unlock_text)
A.playsound_local(A, program.unlock_sound, 50, FALSE, use_reverb = FALSE)
return TRUE
@@ -208,6 +206,7 @@
return
upgrade_level++
if(!first_install)
SSblackbox.record_feedback("tally", "ai_program_upgrade", 1, "[src.type]")
bandwidth_used++
user.program_picker.bandwidth--