feat: combat_engine + generate_pnj_batch + actions/encounter updated
This commit is contained in:
@@ -16,6 +16,7 @@ Règles (Résumé Écran MJ + Résumé des Règles FR) :
|
||||
import random
|
||||
import db
|
||||
import inventory as inv_module
|
||||
import combat_engine
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Rang de compétence par défaut (sans table skills complète en DB)
|
||||
@@ -437,7 +438,7 @@ def _execute_action(char: dict, decision: dict,
|
||||
target = chars_map.get(decision["target_id"])
|
||||
if target and target.get("is_alive", True):
|
||||
weapon = _get_equipped_weapon(inv)
|
||||
resolve_attack(char, target, weapon, session_id, day, tick)
|
||||
combat_engine.resolve_attack(char, target, weapon, session_id, day, tick)
|
||||
|
||||
elif action == "eat":
|
||||
food = next((i for i in inv if i["item_type"] == "food" and i["quantity"] >= 1), None)
|
||||
|
||||
Reference in New Issue
Block a user