Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
So, go for it. :)
If you want to increase the range of towers, edit distance = x; in rpc.objects.towers.Tower<Type>.class in their respected constructors. Be warned though, increasing their range too high can be pretty CPU-intensive as the Line of Sight checks are fairly expensive when a ton of mobs are in range.
As for proper unlimited ammo, you'll have to rewrite a pretty good chunk of code because of how the system works, but you can hack it a bit by adding this to the superclass's constructor (rpc.objects.towers.TowerBase.class) under tower = t; (Line 77)
Then go into each of the tower's update() methods and find these lines and remove them;
That will trick the towers into starting with full ammo, and never decreasing the ammo consumed when they fire.
Of course, some of these variable names and line numbers may be different, since you're working with decompiled code. But it should get you going in the right direction.
Once i find out how not to pay 20 bucks for the DJ Java Decompiler i'll get back into changing the ammo.
There are quite a few free decompilers out there though, but their success rate is hit and miss. I can't really recommend any though as I've never really had a reason to decompile anything in my programming day.
For now, the code isn't obfuscated (like minecraft was) so just need a bit of know-how and a decompiler.