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"

BIN
Assets/DiceInput.kra Normal file

Binary file not shown.

BIN
Assets/DiceInput.kra~ Normal file

Binary file not shown.

BIN
Assets/DiceInput.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/DiceInput.png-4a82432d200f568448a278687e79c45c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/DiceInput.png"
dest_files=[ "res://.import/DiceInput.png-4a82432d200f568448a278687e79c45c.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

BIN
Assets/DiceInput.png~ Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB