A lot more work on a bunch of different parts of the system.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use self::super::secondary_effect::SecondaryEffect;
|
||||
use crate::StringKey;
|
||||
use std::collections::HashSet;
|
||||
|
||||
#[derive(PartialEq, Debug)]
|
||||
@@ -30,7 +31,7 @@ pub enum MoveTarget {
|
||||
|
||||
#[derive(PartialEq, Debug)]
|
||||
pub struct MoveData {
|
||||
name: String,
|
||||
name: StringKey,
|
||||
move_type: u8,
|
||||
category: MoveCategory,
|
||||
base_power: u8,
|
||||
@@ -44,7 +45,7 @@ pub struct MoveData {
|
||||
|
||||
impl MoveData {
|
||||
pub fn new(
|
||||
name: &str,
|
||||
name: &StringKey,
|
||||
move_type: u8,
|
||||
category: MoveCategory,
|
||||
base_power: u8,
|
||||
@@ -56,7 +57,7 @@ impl MoveData {
|
||||
flags: HashSet<String>,
|
||||
) -> MoveData {
|
||||
MoveData {
|
||||
name: name.to_string(),
|
||||
name: name.clone(),
|
||||
move_type,
|
||||
category,
|
||||
base_power,
|
||||
|
||||
Reference in New Issue
Block a user