mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:19:25 +08:00
* Opt: ActionPointBuyLimit * Add multi-lang translation * Solve null return * Disable but preserve old format * Rewrite minor translation; reform buy functions * Add attr redirection * Update action_point.py * Fix:missing os_handler.py * Fix:replace str with bool * Fix:replace str with bool * Fix:replace str with bool * Fix:replace str with bool
This commit is contained in:
13
module/config/redirect_utils/os_handler.py
Normal file
13
module/config/redirect_utils/os_handler.py
Normal file
@@ -0,0 +1,13 @@
|
||||
def action_point_redirect(value):
|
||||
"""
|
||||
redirect attr about action point
|
||||
|
||||
Args:
|
||||
value (bool):
|
||||
If Enable, return 5.
|
||||
If Disable, return 0.
|
||||
"""
|
||||
if value is True:
|
||||
return 5
|
||||
else:
|
||||
return 0
|
||||
Reference in New Issue
Block a user