Add New Card Resouce Type

This commit is contained in:
2022-07-16 12:06:46 +01:00
parent 97322b565f
commit dca0def350
14 changed files with 208 additions and 25 deletions

56
Assets/CardDB/CardBD.gd Normal file
View File

@ -0,0 +1,56 @@
extends Resource
class_name CardResource
enum TYPE {
DAMAGE
UTILITY
SPECIAL
EFFECT
MOVEMENT
}
enum EFFECT {
NONE
POISON
BURN
CONFUSION
WEAKNESS
SPLIT
DOUBLE
HALF
FLIP
DUPLICATE
REROLL
}
enum ACCEPTED_DICE {
DICE_1
DICE_2
DICE_3
DICE_4
DICE_5
DICE_6
}
export (TYPE) var type
export (int) var move_amount_addition
export (int) var move_dice_multiplyer
export (int) var damage_amount_addition
export (int) var damage_dice_multiplyer
export (Array, EFFECT) var effects
export (Array, ACCEPTED_DICE) var accepted_dice
export (int) var number_of_dice = 1
export (bool) var same_dice_requirement = false
export (bool) var addition_dice = false
export (int) var addition_amount = -1
export (String, MULTILINE) var description = ""

18
Assets/CardDB/Damage.tres Normal file
View File

@ -0,0 +1,18 @@
[gd_resource type="Resource" load_steps=2 format=2]
[ext_resource path="res://Assets/CardDB/CardBD.gd" type="Script" id=1]
[resource]
script = ExtResource( 1 )
type = 0
move_amount_addition = 0
move_dice_multiplyer = 0
damage_amount_addition = 0
damage_dice_multiplyer = 1
effects = [ ]
accepted_dice = [ ]
number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Damage Dice Roll"

18
Assets/CardDB/Effect.tres Normal file
View File

@ -0,0 +1,18 @@
[gd_resource type="Resource" load_steps=2 format=2]
[ext_resource path="res://Assets/CardDB/CardBD.gd" type="Script" id=1]
[resource]
script = ExtResource( 1 )
type = 3
move_amount_addition = 0
move_dice_multiplyer = 1
damage_amount_addition = 0
damage_dice_multiplyer = 0
effects = [ 4 ]
accepted_dice = [ ]
number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Move Dice Roll + 1"

18
Assets/CardDB/Move.tres Normal file
View File

@ -0,0 +1,18 @@
[gd_resource type="Resource" load_steps=2 format=2]
[ext_resource path="res://Assets/CardDB/CardBD.gd" type="Script" id=1]
[resource]
script = ExtResource( 1 )
type = 4
move_amount_addition = 1
move_dice_multiplyer = 1
damage_amount_addition = 0
damage_dice_multiplyer = 0
effects = [ ]
accepted_dice = [ ]
number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Move Dice Roll + 1"