FightPropData.java 438 Bytes
Newer Older
Melledy's avatar
Melledy committed
1
2
3
4
5
package emu.grasscutter.data.common;

import emu.grasscutter.game.props.FightProperty;

public class FightPropData {
Melledy's avatar
Melledy committed
6
	private String propType;
Melledy's avatar
Melledy committed
7
	private FightProperty prop;
Melledy's avatar
Melledy committed
8
    private float value;
Melledy's avatar
Melledy committed
9
10
    
	public String getPropType() {
Melledy's avatar
Melledy committed
11
		return propType;
Melledy's avatar
Melledy committed
12
13
14
	}
	
	public float getValue() {
Melledy's avatar
Melledy committed
15
		return value;
Melledy's avatar
Melledy committed
16
17
18
19
20
21
22
	}

	public FightProperty getProp() {
		return prop;
	}

	public void onLoad() {
Melledy's avatar
Melledy committed
23
		this.prop = FightProperty.getPropByName(propType);
Melledy's avatar
Melledy committed
24
25
	}
}