def __init__(self, player): super(BehaviorProfileBalanced, self).__init__() self.conditions = { ConditionHostile(player): 1.1, ConditionSharingSettlement(player): 1.0, ConditionNeutral(player): 0.3, ConditionAllied(player): 0.29, } self.actions[BehaviorManager.action_types.offensive][BehaviorRegular( player)] = 0.8 self.actions[BehaviorManager.action_types.offensive][ BehaviorAggressive(player)] = 0.2 self.actions[BehaviorManager.action_types.idle][BehaviorDoNothing( player)] = 1.0 self.strategies[BehaviorManager.strategy_types.offensive][ BehaviorRegular(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.diplomatic][ BehaviorEvil(player)] = 0.05 self.strategies[BehaviorManager.strategy_types.diplomatic][ BehaviorNeutral(player)] = 0.9 self.strategies[BehaviorManager.strategy_types.diplomatic][ BehaviorGood(player)] = 0.05
def __init__(self, player): super(BehaviorProfilePirateRegular, self).__init__() self.conditions = { ConditionPirateRoutinePossible(player): 1.0, } self.actions[BehaviorManager.action_types.offensive][BehaviorRegularPirate(player)] = 0.75 self.actions[BehaviorManager.action_types.offensive][BehaviorAggressivePirate(player)] = 0.25 self.actions[BehaviorManager.action_types.idle][BehaviorDoNothing(player)] = 0.5 self.strategies[BehaviorManager.strategy_types.idle][BehaviorRegularPirate(player)] = 1.0
def __init__(self, player): super(BehaviorProfileCautious, self).__init__() self.conditions = { ConditionHostile(player): 0.9, #ConditionSharingSettlement(player): 1.0, # does not respond to enemy sharing a settlement ConditionNeutral(player): 0.3, ConditionAllied(player): 0.29, } self.actions[BehaviorManager.action_types.offensive][BehaviorRegular(player)] = 0.8 self.actions[BehaviorManager.action_types.idle][BehaviorDoNothing(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.offensive][BehaviorRegular(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorGood(player)] = 0.7 self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorNeutral(player)] = 0.3