-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GENERAL - added ability to steal items from shops - shopkeepers do not leave any items behind when fleeing anymore - boomerangs and chakrams now always return when thrown (just like harpoons) - sleeping in water doesn't affects health regeneration rate anymore - slightly adjusted various debuff durations MOBS & BOSSES - gnoll brutes now become enraged on being hit while having less than 50% health - DM-300 now becomes slightly faster after every enrage (up to 95%) - DM-300 now receives halved damage when enraged - Tengu now receives halved damage when enraged HERBS & WATERSKINS - brought back the Earthroot herb - changed the sprite of the Whirlvine herb - added a rare Wyrmflower herb which can be used to brew potions of Strength - pouring water from waterskins does not flood the targeted tile anymore - pouring water from waterskin now turns ember tiles into grass tiles - pouring water from waterskin now turns grass tiles into high grass tiles - pouring water from waterskin now grows random herbs on a high grass tiles BUGS & ISSUES - fixed game crashing when attacking burning Goo or its spawns - fixed game crashing sometimes when Ankh tries to resurrect you - fixed game crashing when player character is killed by a trap - fixed Levitation visual effect glitch when using potion of Levitation to fall down - fixed Ensnared duration from webs and regrowth clouds - fixed guard lasting for a more than a single turn - fixed some descriptions in the tutorial - fixed some typos and grammar mistakes - fixed some other minor issues
- Loading branch information
1 parent
766c3ed
commit beb2fdf
Showing
58 changed files
with
832 additions
and
493 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
...src/main/java/com/consideredhamster/yetanotherpixeldungeon/actors/buffs/BuffReactive.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* Pixel Dungeon | ||
* Copyright (C) 2012-2015 Oleg Dolya | ||
* | ||
* Yet Another Pixel Dungeon | ||
* Copyright (C) 2015-2016 Considered Hamster | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* 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 General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/> | ||
*/ | ||
package com.consideredhamster.yetanotherpixeldungeon.actors.buffs; | ||
|
||
import com.consideredhamster.yetanotherpixeldungeon.actors.Char; | ||
import com.watabou.utils.Bundle; | ||
|
||
import java.util.HashSet; | ||
|
||
public abstract class BuffReactive extends Buff { | ||
|
||
protected int duration; | ||
|
||
public void reset( int value ) { | ||
duration = value; | ||
} | ||
|
||
public void check(){ | ||
if( duration > 0 ) { | ||
duration--; | ||
} else { | ||
detach(); | ||
} | ||
} | ||
|
||
public static void check( Char ch ){ | ||
for( BuffReactive buff : (HashSet<BuffReactive>)ch.buffs( BuffReactive.class ).clone() ) { | ||
buff.check(); | ||
} | ||
} | ||
|
||
@Override | ||
public boolean act() { | ||
spend( TICK ); | ||
return true; | ||
} | ||
|
||
private static final String DURATION = "duration"; | ||
|
||
@Override | ||
public void storeInBundle( Bundle bundle ) { | ||
super.storeInBundle( bundle ); | ||
bundle.put( DURATION, duration ); | ||
} | ||
|
||
@Override | ||
public void restoreFromBundle( Bundle bundle ) { | ||
super.restoreFromBundle(bundle); | ||
duration = bundle.getInt( DURATION ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.