mirror of
https://github.com/evennia/evennia.git
synced 2026-03-31 13:07:16 +02:00
20 lines
453 B
Python
20 lines
453 B
Python
|
|
"""
|
||
|
|
Everything related to flags and flag management.
|
||
|
|
"""
|
||
|
|
import defines_global
|
||
|
|
|
||
|
|
def is_unsavable_flag(flagname):
|
||
|
|
"""
|
||
|
|
Returns TRUE if the flag is an unsavable flag.
|
||
|
|
"""
|
||
|
|
return flagname.upper() in defines_global.NOSAVE_FLAGS
|
||
|
|
|
||
|
|
def is_modifiable_flag(flagname):
|
||
|
|
"""
|
||
|
|
Check to see if a particular flag is modifiable.
|
||
|
|
"""
|
||
|
|
if flagname.upper() not in defines_global.NOSET_FLAGS:
|
||
|
|
return True
|
||
|
|
else:
|
||
|
|
return False
|