Jump to content

Recommended Posts

  • Staff

PokeBattle_Move:2089

Before:

if (id == PBMoves::PETALBLIZZARD || id == PBMoves::PETALDANCE || id == PBMoves::FLEURCANNON) && $fecounter = 2

After:

if (id == PBMoves::PETALBLIZZARD || id == PBMoves::PETALDANCE || id == PBMoves::FLEURCANNON) && $fecounter == 2

I noticed it with mkxp-z's console=true build option.

Link to post
Share on other sites
  • 2 weeks later...
  • Administrators

i think we've caught that one already

but i'd also like to offer this

def isConst?(val,mod,constant)
  begin
    return (val==mod.const_get(constant.to_sym))
  rescue
    print("broken constant #{constant}")
    return false
  end
end

the current isconst? function doubles up the amount of work needed to check if a constant exists and then doesn't tell you that a constant is mistyped

i don't want to force extra work on you, but if you're already paying attention to the console this may make broken constants easier to find.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...