Skip to content

Clone_weapon now returns an ID#39

Merged
WuBoytH merged 2 commits into
HDR-Development:masterfrom
FatherOfEgg:clone_weapon-return-id
Sep 2, 2024
Merged

Clone_weapon now returns an ID#39
WuBoytH merged 2 commits into
HDR-Development:masterfrom
FatherOfEgg:clone_weapon-return-id

Conversation

@FatherOfEgg
Copy link
Copy Markdown
Contributor

clone_weapon

  • Now returns an i32, which is the cloned article's ID
    • FIGHTER_X_GENERATE_ARTICLE_A = 0x2 + clone_weapon(...);
      0x2 is the number of articles your fighter originally has.
  • Panics when trying to clone a new weapon, and that agent already exists
    • Doing clone_weapon(mario, x, captain, apple) and clone_weapon(link, y, captain, apple) panics
    • But if someone did this for some reason, with the dev plugin, it wouldn't panic, and returns the ID for link_y(captain_banana):
      clone_weapon(mario, x, captain, apple)
      clone_weapon(link, y, captain, banana), and then later changed it to clone_weapon(link, y, captain, apple)

@WuBoytH WuBoytH merged commit e38b73c into HDR-Development:master Sep 2, 2024
@FatherOfEgg FatherOfEgg deleted the clone_weapon-return-id branch September 2, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants