Commit graph

122 commits

Author SHA1 Message Date
5dd62cc2bf Use Random instead of math.random()
Also moved rest of probability logic out of addScheduledTask().
2018-10-27 17:34:02 +09:00
83711ed7e3 Move probability logic to BattleUpdate thread 2018-10-27 16:53:04 +09:00
044ee7d860 Minor change to debug log notes 2018-10-27 16:35:29 +09:00
1f4d107870 Minor improvements/fixes 2018-10-27 16:26:39 +09:00
fc9eaa0779 Minor fixes, improvements 2018-10-26 18:10:09 +09:00
39257cee55 Minor fixes 2018-10-26 14:18:48 +09:00
aa229036ad Version 1.7
Can now add/edit "custom-name" entries to the config via
"/tbm-edit custom". These entries only apply to mobs with a matching
custom name.
2018-10-26 13:36:35 +09:00
9e15f845c5 Add command "/tbm-edit"
Can now add/edit entity entries in config. Now possible to add entries
for unknown mobs in-game.
2018-10-25 14:31:27 +09:00
05b3dc90b0 Use .toml instead of .xml for config 2018-10-25 14:31:06 +09:00
faf7a02619 Fix bug where player can enter battle with self 2018-10-20 20:06:32 +09:00
bd7d7e16f3 Version 1.5, minor fixes
Food and potion consumption in battle is now handled more properly.
2018-10-19 17:18:02 +09:00
54207c6e80 Version 1.4 2018-10-18 16:28:47 +09:00
d67fef2842 Fixes, add maximum-distance to aggro-start-battle
Ugly fix for still not found freeze bug in BattleUpdater.
Added maximum-distance for monsters initiating battle when targeting a
player or entity in battle.
Updated config version to 6.
2018-10-18 16:26:09 +09:00
00961768b3 Fixes
Acutally fix duplicate ".. entered battle" message bug.
Fix potential crash bug.
2018-10-18 14:47:40 +09:00
967fed3164 Fix duplicate "... entered battle" messages 2018-10-18 13:43:26 +09:00
0a26eee53a Fixes and Refactorings, no major changes 2018-10-18 13:34:57 +09:00
f55b2e89ab Add battle cooldown
Cooldown (default 5 seconds) prevents an entity that left battle from
attacking or being-attacked for the duration of the cooldown.
2018-10-17 18:28:47 +09:00
115fa02753 Version 1.3, Fixes, improvements
Changed turn-based-battle start behavior to also start when a hostile
mob targets a player or entity in battle.
Added config option to revert to old-style battle starting behavior.
(Since config version updated, older config will be moved and the new
config will take its place.)
Changed mob attack target in Battle to whatever they were targeting (via
a call to "getAttackTarget()").
2018-10-17 17:15:23 +09:00
6e7cd0177a Fix /tbm-disable|enable-all to notify all players 2018-10-17 13:27:55 +09:00
cbe2476990 Fixes, added commands, version to 1.2
Fixed /tbm-enable and /tbm-disable not working in singleplayer.
Added /tbm-enable-all and /tbm-disable-all to enable/disable for all
players.
2018-10-17 12:19:16 +09:00
761ab5a5f0 Add commands/config to disable turnbased on demand 2018-10-16 14:42:24 +09:00
7532f2c506 Minor fix to how Common/Client Proxy handles init 2018-10-04 12:07:26 +09:00
8731ce6a4d Set version to 1.0 2018-09-28 19:29:57 +09:00
91cbe8be87 Fix volume of Battle music to check master volume 2018-09-28 19:28:20 +09:00
e514a4502b Add bg to text in BattleGui 2018-09-28 19:21:49 +09:00
857ff2539b Cleanup of code, move BattleGui main menu 2018-09-28 17:46:48 +09:00
38fd9da186 Fix BattleGui menu position 2018-09-28 13:20:17 +09:00
72abfb9c76 Move BattleGui main menu buttons 2018-09-28 12:18:21 +09:00
0e0a7ea562 Move client Battle to ClientProxy 2018-09-28 12:13:07 +09:00
bb8ebf561b Change how silly music is triggered
Can now specify in config what minimum percentage of silly entities
trigger silly music in battle.
2018-09-28 12:02:39 +09:00
c2c19f6af2 Fix passive-type battle music occurrences, fixes 2018-09-27 18:09:40 +09:00
3e234ea94e Fix bug where two sounds play at once, fixes
Mod should also now resume other previously playing sounds/music after
battle has ended.

Also prevents possible concurrent modification exception when new
Entities are added to Battle server-side.
2018-09-27 16:46:17 +09:00
6ead1e1d3d Fix falling perpetually with Freeze mode, fixes 2018-09-25 15:16:35 +09:00
a4c3a28028 Minor fixes/changes
Added option in config to change battle timer time
2018-09-25 14:55:24 +09:00
9119f42e5b Fix client unable to see entity not in config 2018-09-21 16:33:27 +09:00
05edd8630d prerelease version 0.3 2018-09-21 16:11:59 +09:00
676f71e313 Add volume control to battle music
Battle music volume is set based on the music volume slider in the
Minecraft settings. The default Midi device provided in Java does not
appear to support changing the volume of playing midi file after some
testing. For now, only ".wav" files obey the Music volume slider
settings.
2018-09-21 16:10:00 +09:00
8c3bdc0ad1 Change TBM_Config.xml format for entities 2018-09-20 15:36:31 +09:00
bdb090f74b Fixes, change how BattleManager is initialized 2018-09-20 15:15:34 +09:00
74abaa76c0 Stability fixes 2018-09-19 15:00:38 +09:00
24749b8ccc Minor fixes/changes 2018-09-18 16:58:01 +09:00
efa65da721 Fix bow attack, config, add freeze enemies option
Fix bug where bow attack hit announcement was made multiple times.
Fix config format for Entities.
Add feature to freeze combatants when battle starts, option to enable in
config.
2018-09-18 15:56:06 +09:00
9778c6a7d5 Implement use of vanilla bow/arrows in battle 2018-09-17 15:49:10 +09:00
b684310be8 Move battle attacks to main thread, minor fixes
Battle attacks moved to main thread for stability (fixes possible
concurrent modification exception).
2018-09-17 13:27:13 +09:00
c237a434f5 Prerelease Version 0.2 2018-09-14 14:15:07 +09:00
b1a3eb9880 Implement battle music
Can play mid and wav files in the generated config directory
2018-09-14 14:14:10 +09:00
5f70253955 Fixes, improvements
BattleGui now displays health of all combatants.
Players can leave battle by entering creative mode (set by server).
Added battle size limit (default 8) can be set in config.
2018-09-14 12:44:45 +09:00
6a97a90d68 Remove "Conflicts", prevent creative mode battles 2018-09-13 15:50:34 +09:00
d316261b76 Fix name being switched in Message 2018-09-13 15:29:14 +09:00
f4658f6b3d Move config initialization to PostInit event 2018-09-13 15:00:00 +09:00
d70d0c2d38 bug fixes and add MinimumHitPercentage to config 2018-09-13 14:52:48 +09:00
0ea3dfd98a Minor fixes/changes 2018-09-13 14:12:04 +09:00
24ca95cc99 Implement attack effects (as listed in config) 2018-09-13 13:52:22 +09:00
9d5e830d3c Prerelease version 0.1 2018-09-13 13:07:49 +09:00
ca018a63b3 Fix for server/client setup 2018-09-12 16:10:02 +09:00
2872543c93 Fix for server/client setups 2018-09-12 16:00:55 +09:00
5eba2dd41b Fix to allow mod to work on server 2018-09-12 15:39:55 +09:00
5999808859 crash bug fixes, mod is playable at this point
Missing some features from the pre-rewrite version such as playing
battle music, using bow/arrows, limiting number of combatants in
battle...
2018-09-12 14:43:59 +09:00
3d6354e808 WIP - minor fixes 2018-09-11 16:39:46 +09:00
de48b8401c WIP - implemented enough GUI to start testing 2018-09-11 15:15:31 +09:00
0d5f18f997 WIP - begin work on client GUI 2018-09-10 14:59:56 +09:00
97cfdaf0f7 WIP backend logic impl, fixes to config gen/parse 2018-09-07 16:41:22 +09:00
0520e163f8 WIP more backend work on battle logic 2018-09-06 17:08:36 +09:00
2aec173e80 WIP Some battle logic has been implemented 2018-09-05 15:54:06 +09:00
c8ce401e4d WIP more work on setup and Battle logic 2018-09-04 15:21:49 +09:00
26c3356147 WIP Add Config.java for setup/loading config 2018-09-03 15:19:33 +09:00
0ab0312e84 Work In Progress - TBM_Config.xml updated
The config file should hold info on all vanilla mobs by now
2018-08-31 13:28:13 +09:00
784cff7914 Work In Progress - Begin adding config
src/main/resources/TBM_Config.xml will be copied to this mod's config
directory. If a config file already exists and the version number is the
same, it won't be overridded. If the version number is less than the
mod's internal config file, then the old one will be renamed and the new
one will take its place. At least this is how it is planned.
2018-08-30 16:15:20 +09:00
957ad5ec38 Work In Progress - Some more work done
Added some Packets/Handlers for networking, and more work on Battle
logic.
2018-08-29 15:09:44 +09:00
82b52d72be Work In Progress - some implementation work done 2018-08-28 15:15:50 +09:00
c3c228fefa Minor fixes 2018-08-28 11:51:26 +09:00
721af3f1d0 Init commit with skeleton project of rewrite 2018-08-28 11:26:34 +09:00