Feature Ability to Read, If Not Write, itemflags.txt

philmasterplus

Active member
Because being able to read itemflags.txt settings would help scripts decide how to manage items. Right now, because of the internal structure of the file, there seems no way of accessing the list. Personally, I think allowing scripts to modify the file is a bad idea, so how about adding reading functions instead?

Code:
boolean [item] get_memento_list() #Returns array (immutable)
boolean [item] get_junk_list()
boolean [item] get_singleton_list()
boolean [item] get_profitable_list()

Alternatively, we could have boolean functions that accept an item as their parameters, but I like the former option better:
Code:
boolean is_memento( item i )
boolean is_junk( item i )
boolean is_singleton( item i )
boolean is_profitable( item i )
 
Top