Skip to content

Items, hero stat modifiers, and shop systems #99

Description

@corepunch

Overview

Implement item abilities, hero stat modifiers, and shop/neutral building systems.


Abilities covered

Item use (partial)

  • Item Heal (AIhe) — needs charge/consume rules
  • Item Mana Regain (AIma) — needs charge/consume rules
  • Permanent Life Gain (AImi) — needs charge/consume rules
  • Figurine Summon (AIfs) — item summon behavior

Item stat modifiers

  • Attack Bonus (AIat) — weapon damage modifier
  • Defense Bonus (AIde) — armor modifier
  • Life Bonus (AIml) — max health modifier
  • Mana Bonus (AImm) — max mana modifier
  • Stat Bonus (AIab) — hero stat (STR/AGI/INT) modifier

Permanent hero gains

  • Permanent Intelligence Gain (AIim)
  • Permanent Strength Gain (AIsm)
  • Permanent Agility Gain (AIam)
  • Permanent Multi-stat Gain (AIxm)
  • Experience Gain (AIem) — hero XP flow
  • Level Gain (AIlm) — hero level-up flow

Shops & neutral

  • Shop Purchase Item (Apit) — shop inventory, purchase flow
  • Neutral Building (Aneu) — neutral interaction, command card
  • Shop Sharing (Aall) — depends on shop/neutral systems

Files to modify

Existing:

  • games/warcraft-3/game/skills/s_item.c — extend with charge/consume, stat modifiers
  • games/warcraft-3/game/skills/s_ability_stubs.c — remove stubs

New:

  • games/warcraft-3/game/skills/s_item_stats.c — stat modifier system
  • games/warcraft-3/game/skills/s_shop.c — shop inventory, purchase, sharing
  • games/warcraft-3/game/skills/s_neutral.c — neutral building interaction

Implementation checklist

  • Item charge/consume rules (AIhe, AIma, AImi)
  • Figurine summon behavior (AIfs)
  • Stat modifier system (AIat, AIde, AIml, AImm, AIab)
  • Permanent stat gains (AIim, AIsm, AIam, AIxm)
  • Hero XP/level flow (AIem, AIlm)
  • Shop inventory and purchase (Apit)
  • Neutral building interaction (Aneu)
  • Shop sharing (Aall)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuiUser interfacewarcraft-3Warcraft III specific features

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions