mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Better AI Program Blackboxing (#28982)
* Better AI Program Blackboxing * Bad duplicates * Bad var
This commit is contained in:
@@ -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--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user