HalestormXV Posted March 9, 2018 Posted March 9, 2018 (edited) I think I saw this somewhere here on the forums but I can't seem to find it via any search (unless I'm just missing it). I'm looking to create my own rarities and I vaugly remember seeing that there is a built in EnumHelper or something like that? Is that was would need to be needed and placed into a class that extends the EnumRarities? Becasue I don't think you can just override the existing rarities right? Edited March 10, 2018 by HalestormXV Quote
IlTosaerba Posted March 9, 2018 Posted March 9, 2018 5 hours ago, diesieben07 said: What for? What are you trying to achieve? I think he's trying to give Items a rarity and than base the drop of this Items on the rarity of the item itself. Like, think that we put a LivingDropEvent on Zombie and say it can drop "Rusty sword [common]", "Elite sword [Rare]", "Creator's sword [Legendary]". You will have only one sword dropped by every single Zombie, the rusty will be the more common up to the rarest "Creator's sword". Quote
IlTosaerba Posted March 9, 2018 Posted March 9, 2018 Just now, diesieben07 said: This has nothing to do with EnumRarity. My bad, I miss the part of the EnumRarities Quote
Draco18s Posted March 9, 2018 Posted March 9, 2018 3 hours ago, IlTosaerba said: My bad, I miss the part of the EnumRarities It is used for weighed loot probabilities. e.g. fishing, dungeon chests, etc. Quote 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.
IlTosaerba Posted March 9, 2018 Posted March 9, 2018 1 hour ago, Draco18s said: It is used for weighed loot probabilities. e.g. fishing, dungeon chests, etc. Oh, cool, so I was half right, after all. Can I use it also as random Entity (mobs) drops? Quote
HalestormXV Posted March 10, 2018 Author Posted March 10, 2018 Mainly I want to use it for the color and loot. It's really just a simple use and I'm curious about it. (I know you can change color of items via lang file) Quote
Draco18s Posted March 10, 2018 Posted March 10, 2018 2 hours ago, HalestormXV said: Mainly I want to use it for the color and loot. It's really just a simple use and I'm curious about it. (I know you can change color of items via lang file) Create your own enum. Quote 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.
HalestormXV Posted March 10, 2018 Author Posted March 10, 2018 Alright no biggie. Figured I'd ask. Thanks. Quote
Draco18s Posted March 10, 2018 Posted March 10, 2018 9 hours ago, diesieben07 said: No, it is not. Literally all EnumRarity is used for is Item::getRarity which sets the color of the name in the item stack tooltip. This color can be set to whatever you want using addInformation. There is no need to fiddle around with EnumHelper. I must have been thinking of something else. Quote 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.
Recommended Posts
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.