Commit Graph

39 Commits

Author SHA1 Message Date
f8b44cd8ce New Salvage ability for Repair!
Added a fully working ability to Repair. With this ability you can
salvage items and get bars in return.

- Added new permission node for Salvage ability
- Added new config options for Salvage
- Added new locale strings for Salvage
- Added a check to make sure that Repair Anvil != Salvage Anvil
2012-11-13 16:50:00 +01:00
0f7bf13834 Update src/main/java/com/gmail/nossr50/skills/repair/Repair.java
When DowngradeChance is 0 random can be the same (0 to 99) so can't be <= becouse downgrade will continue
2012-08-31 18:03:54 +03:00
GJ
cda3675dc5 More bad variable names. 2012-07-03 10:14:01 -04:00
GJ
caf9c07ba3 Because PP is an awful variable name. 2012-07-03 10:04:04 -04:00
GJ
c3d7a4e3de Fixed "lucky" perk making downgrades from repair more likely. 2012-07-02 19:56:48 -04:00
GJ
819b6fcacb Added "lucky" donor perk - abilities have 25% better chance to activate 2012-07-02 11:09:55 -04:00
c45beec59d Fixed repair enchant downgrade 2012-07-01 00:04:53 +02:00
GJ
d644b4c331 Fixed NPE with repairing items that rely on metadata. 2012-06-06 18:27:52 -04:00
GJ
2f15c71412 Because making it upper case broke all the things. 2012-06-06 18:02:22 -04:00
GJ
e5d2ed4bb2 Because lowercase class names are evil. 2012-06-06 14:49:07 -04:00
GJ
71446a12af Static ALL the things! 2012-06-05 10:42:56 -04:00
GJ
6afe0e8a34 Organize imports. 2012-06-05 10:13:10 -04:00
GJ
1e58c32a5f Change XP processing to use a single function. 2012-06-04 09:30:51 -04:00
GJ
2a27048174 Functions that start with capital letters are bad. 2012-06-04 09:08:41 -04:00
GJ
450e938092 Change Spout Config file to only load if Spout is enabled.
Removed unused imports.
2012-05-23 14:31:03 -04:00
GJ
63f683982f Moved Spout stuff to its own config file. 2012-05-23 10:50:47 -04:00
GJ
9525ce8299 Cleanup. 2012-05-23 09:35:16 -04:00
c5183309ae New line on the factory floor
For RepairableFactory
2012-05-22 08:10:22 -04:00
8feaf4410f getRepairable by id 2012-05-22 05:33:04 -04:00
4e224d761e Cleanup Repair.java 2012-05-22 05:33:04 -04:00
60754c9380 Implement xp 2012-05-22 05:33:04 -04:00
9f9c0059a5 Change xpHandler for new system usage
This commit marks the first breaking change for this new system
2012-05-22 05:33:03 -04:00
4eabd417b9 Level check 2012-05-22 05:33:03 -04:00
4b5ca5ecf4 Logic fix 2012-05-22 05:33:02 -04:00
edbf46a751 Unused import 2012-05-22 05:33:02 -04:00
437a608d2b Return on this error 2012-05-22 05:33:01 -04:00
b7cec8a0c4 Most of handleRepair() done, level checking still needed
- Move Repair
- Change visibility of a few methods for repurposing Repair soon
2012-05-22 04:22:29 -04:00
28578bd6b0 Convenience method for RepairManager 2012-05-22 02:59:10 -04:00
20b169e8eb Typo 2012-05-22 00:00:01 -04:00
7f0803c3f6 Add in xpMultiplier 2012-05-17 22:40:46 -04:00
bd3491d210 Registration 2012-05-17 20:01:37 -04:00
d139146e0b Too much space 2012-05-17 19:57:56 -04:00
26481c547a Beginnings of RepairManager implementation
Plus more factories for a stronger economy
2012-05-17 09:43:42 -04:00
45fe8c182b Put new permissions to good use 2012-05-17 09:43:42 -04:00
efc9a10fdf Make use of enum 2012-05-17 09:43:42 -04:00
a8eb9dfedf <GJ> All hail the enum! 2012-05-17 09:43:42 -04:00
87cf5cb932 Add metadata value for repair material 2012-05-17 09:43:41 -04:00
a9295751c8 Beginnings of RepairManager interface
Not sure yet exactly what to leave in Repair and what to have in the Manager implementation.

I'm fairly sure that the xpHandler should be in Repair, but that's private at the moment so usage from the Manager is impossible except with public modifier, which is unacceptable.

Considering moving Repair to the new repair package, perhaps eventually all skills will have packages and skills.  Moving it seems like the logical solution with protected modifier.
2012-05-17 04:32:14 -04:00
d3b7af3c5f Beginnings of the repairable 2012-05-17 04:01:47 -04:00