Added the ability to specify a custom rebirth npc id, which is automatically added to the list of scriptable npcs for overriding. Changed scriptable npcs to use config instead of a constants file, so that users can easily modify them without digging into the code and requiring a rebuild.
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
package constants.game;
|
||||
|
||||
/**
|
||||
* @brief ScriptableNPCConstants
|
||||
* @author GabrielSin <gabrielsin@playellin.net>
|
||||
* @date 16/09/2018
|
||||
*
|
||||
* Adaptations to use Pair and Set, in order to suit a one-packet marshall.
|
||||
* Adapted by Ronan
|
||||
*/
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import tools.Pair;
|
||||
|
||||
public class ScriptableNPCConstants {
|
||||
|
||||
public static final Set<Pair<Integer, String>> SCRIPTABLE_NPCS = new HashSet<Pair<Integer, String>>(){{
|
||||
//add(new Pair<>(9200000, "Cody"));
|
||||
add(new Pair<>(9001105, "Grandpa Moon Bunny"));
|
||||
}};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user