Jump to content

Weapon with Max and Min Damage and Crit Chance


Deadzoke

Recommended Posts

Ok, so... I did all the coding related to it (maybe its bad as s**t, but works :P), but I have a little problem.

So, when the weapon is loaded 1st time into the game, i made it beggin with the attackDamageMin (lets say 20 damage). When i hit an entity this should go between attackDamageMin and attackDamageMax (like 20 - 40), but that only happens when i press Esc key and return to game. Any idea? :P

 

Oh, and a little question. How can i hide the "When in main hand: x Attack speed x Attack Damage"?


Much thanks!!

Edited by Deadzoke
Link to comment
Share on other sites

Code?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

    private String name;
    private EnumQuality quality;
    private int tier;
    private float attackSpeed;
 
    private float attackDamageMin;
    private float attackDamageMax;
    private float attackDamage;
 
    private boolean hasCriticalDamage = false;
    private float criticalDamageChance;
    private float criticalDamageValue;
    private float criticalDamage;
   
    private boolean hasLore = false;
    private String lore;

Items are singletons, you can't do this.

    private String bold = "\u00A7l";
    private String italic = "\u00A7o";
    private String reset = "\u00A7r";

Seriously? TextFormatting, use it.

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

By using this site, you agree to our Terms of Use.