Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BUGFIX] AI Reset Module and Electromagnetic Storms
#1
Definitely a problem in many rounds on LLJK1, less so on LLJK2: electromagnetic storms can change the core three laws. Using a reset module does not replace these laws with the defaults, only removes other laws.

While this can have hilarious side effects, it essentially commits the freeform module to being used to fix this law issue afterwards.

Effect(s)
  • The reset module now also resets laws 1-3 to their default values (more accurately, it resets the laws to their default, so if the AI's default laws are different for some reason it would reset to those).
Testing
  • I tested on my local build (my changes on top of the goonstation-2016-byond510 branch) and it seems fine.
  • Resets laws outside of 1-3 still: yes
  • Resets laws 1-3 to default: yes
Code
Notes / Comments / Questions
  • Not sure if there's a reason for this in the first place.
  • Could also be implemented as a "root reset" module, which would only affect the Laws 1-3 while leaving any other laws intact.
Reply


Messages In This Thread
[BUGFIX] AI Reset Module and Electromagnetic Storms - by Mordent - 11-17-2016, 06:37 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)