User Tools

Site Tools


mr:speed_buff

Speed Buff - Code References

Speed Buff

Machine-readable reference page for the Speed buff entity in Remixed Dungeon.

Java Classes

JSON Configuration

This entity is implemented in Java, no JSON configuration exists

String Resources

<!-- String resources would be defined in strings_all.xml -->
<!-- Name and description strings for the Speed buff -->

Lua Scripts

This entity is implemented in Java, no Lua script exists

Implementation Details

  • Package: com.watabou.pixeldungeon.actors.buffs
  • Extends: FlavourBuff (flavor buff with no negative effects)
  • Duration Constant: DURATION = 10f (10 seconds / 100 game ticks)
  • Haste Multiplier: 7.27254f (approximately 7.27x movement/attack speed)
  • Method Override: hasteLevel(Char chr) returns 7.27254f
  • Buff Type: Positive buff (FlavourBuff subclass)
  • Target: Applied to Char (character/actor)

Code Fragment

package com.watabou.pixeldungeon.actors.buffs;
 
import com.watabou.pixeldungeon.actors.Char;
 
public class Speed extends FlavourBuff {
 
	public static final float DURATION = 10f;
 
	@Override
	public float hasteLevel(Char chr) {
		return 7.27254f;
	}
}

Usage in Game

  • Applied by various sources (potions, spells, equipment)
  • Increases movement and attack speed by 7.27x
  • Lasts for 10 seconds (100 game ticks)
  • No negative side effects (FlavourBuff)
mr/speed_buff.txt · Last modified: by 127.0.0.1