Make log rotation also limited by size and controllable from settings. Resolves #2041
This commit is contained in:
parent
f124b3510b
commit
ff16eb1bfe
13 changed files with 98 additions and 40 deletions
|
|
@ -441,11 +441,11 @@ class TBBasicTurnHandler(DefaultScript):
|
|||
"""
|
||||
combat_cleanup(character) # Clean up leftover combat attributes beforehand, just in case.
|
||||
character.db.combat_actionsleft = (
|
||||
0
|
||||
) # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
0 # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
)
|
||||
character.db.combat_turnhandler = (
|
||||
self
|
||||
) # Add a reference to this turn handler script to the character
|
||||
self # Add a reference to this turn handler script to the character
|
||||
)
|
||||
character.db.combat_lastaction = "null" # Track last action taken in combat
|
||||
|
||||
def start_turn(self, character):
|
||||
|
|
|
|||
|
|
@ -438,11 +438,11 @@ class TBEquipTurnHandler(DefaultScript):
|
|||
"""
|
||||
combat_cleanup(character) # Clean up leftover combat attributes beforehand, just in case.
|
||||
character.db.combat_actionsleft = (
|
||||
0
|
||||
) # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
0 # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
)
|
||||
character.db.combat_turnhandler = (
|
||||
self
|
||||
) # Add a reference to this turn handler script to the character
|
||||
self # Add a reference to this turn handler script to the character
|
||||
)
|
||||
character.db.combat_lastaction = "null" # Track last action taken in combat
|
||||
|
||||
def start_turn(self, character):
|
||||
|
|
@ -553,8 +553,8 @@ class TBEWeapon(DefaultObject):
|
|||
self.db.damage_range = (15, 25) # Minimum and maximum damage on hit
|
||||
self.db.accuracy_bonus = 0 # Bonus to attack rolls (or penalty if negative)
|
||||
self.db.weapon_type_name = (
|
||||
"weapon"
|
||||
) # Single word for weapon - I.E. "dagger", "staff", "scimitar"
|
||||
"weapon" # Single word for weapon - I.E. "dagger", "staff", "scimitar"
|
||||
)
|
||||
|
||||
def at_drop(self, dropper):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -718,11 +718,11 @@ class TBItemsTurnHandler(DefaultScript):
|
|||
"""
|
||||
combat_cleanup(character) # Clean up leftover combat attributes beforehand, just in case.
|
||||
character.db.combat_actionsleft = (
|
||||
0
|
||||
) # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
0 # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
)
|
||||
character.db.combat_turnhandler = (
|
||||
self
|
||||
) # Add a reference to this turn handler script to the character
|
||||
self # Add a reference to this turn handler script to the character
|
||||
)
|
||||
character.db.combat_lastaction = "null" # Track last action taken in combat
|
||||
|
||||
def start_turn(self, character):
|
||||
|
|
|
|||
|
|
@ -470,11 +470,11 @@ class TBMagicTurnHandler(DefaultScript):
|
|||
"""
|
||||
combat_cleanup(character) # Clean up leftover combat attributes beforehand, just in case.
|
||||
character.db.combat_actionsleft = (
|
||||
0
|
||||
) # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
0 # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
)
|
||||
character.db.combat_turnhandler = (
|
||||
self
|
||||
) # Add a reference to this turn handler script to the character
|
||||
self # Add a reference to this turn handler script to the character
|
||||
)
|
||||
character.db.combat_lastaction = "null" # Track last action taken in combat
|
||||
|
||||
def start_turn(self, character):
|
||||
|
|
|
|||
|
|
@ -674,11 +674,11 @@ class TBRangeTurnHandler(DefaultScript):
|
|||
"""
|
||||
combat_cleanup(character) # Clean up leftover combat attributes beforehand, just in case.
|
||||
character.db.combat_actionsleft = (
|
||||
0
|
||||
) # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
0 # Actions remaining - start of turn adds to this, turn ends when it reaches 0
|
||||
)
|
||||
character.db.combat_turnhandler = (
|
||||
self
|
||||
) # Add a reference to this turn handler script to the character
|
||||
self # Add a reference to this turn handler script to the character
|
||||
)
|
||||
character.db.combat_lastaction = "null" # Track last action taken in combat
|
||||
|
||||
def start_turn(self, character):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue