Wrap around hpDec schedules (#75)

* Wrap around hpDec schedules

Merges hpDec schedules at character into a world schedule.

* Patch hpDec timer reset on changing maps

Patch timer reset on changing maps with hpDec.

* Update Character.java

* Update Client.java

* Update World.java

Co-authored-by: Ronan Lana <rcpl2010@gmail.com>
This commit is contained in:
ronancpl7
2022-08-03 02:42:15 -03:00
committed by GitHub
parent e5e9b50215
commit 905a0260a6
9 changed files with 86 additions and 33 deletions

View File

@@ -0,0 +1,37 @@
/*
This file is part of the HeavenMS MapleStory Server
Copyleft (L) 2016 - 2019 RonanLana
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.server.task;
import net.server.world.World;
/**
* @author Ronan
*/
public class CharacterHpDecreaseTask extends BaseTask implements Runnable {
@Override
public void run() {
wserv.runPlayerHpDecreaseSchedule();
}
public CharacterHpDecreaseTask(World world) {
super(world);
}
}