Implement the BaseMove class

This commit is contained in:
CactiChameleon9 2022-03-24 17:19:21 +00:00
parent cb28c15a0e
commit 363c53d0e7
3 changed files with 28 additions and 0 deletions

View File

@ -9,12 +9,18 @@
config_version=4
_global_script_classes=[ {
"base": "Node",
"class": "BaseMove",
"language": "GDScript",
"path": "res://src/nodes/moves/BaseMove.gd"
}, {
"base": "Node2D",
"class": "Unit",
"language": "GDScript",
"path": "res://src/classes/Unit.gd"
} ]
_global_script_class_icons={
"BaseMove": "",
"Unit": ""
}

View File

@ -0,0 +1,16 @@
extends Node
class_name BaseMove
export var title : String = "Move"
export var power : int = 0
export (String,
"Normal", "Fire", "Water",
"Grass", "Sound") var type : String = "Normal" #TODEC
export (int, "Physical", "Special", "Status") var catagory : int #TODEC
export var accuracy : int = 100 #TODEC
export var makes_contact : bool = false #TODEC
export var points : int = 3
export var effect1 : String
export var effect2 : String
export var effect3 : String
export (String, MULTILINE) var description : String

View File

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://src/nodes/moves/BaseMove.gd" type="Script" id=1]
[node name="BaseMove" type="Node"]
script = ExtResource( 1 )