Add a range parameter and make some more interesting cards

This commit is contained in:
CactiChameleon9 2022-07-16 14:36:21 +01:00
parent 8bf99ecae1
commit 47025af8c5
6 changed files with 58 additions and 8 deletions

View File

@ -0,0 +1,21 @@
[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 )
name = "Broadsword"
type = 0
effect_damage_range = 2
move_amount_addition = 0
move_dice_multiplyer = 1
damage_amount_addition = 0
damage_dice_multiplyer = 0
effects = [ ]
accepted_dice = [ ]
number_of_dice = 2
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Does damage equal to the sum of both dice to all enemies
Range: 2 spaces"

View File

@ -10,8 +10,6 @@ enum TYPE {
}
enum EFFECT {
NONE
POISON
BURN
CONFUSION
@ -34,8 +32,12 @@ enum ACCEPTED_DICE {
DICE_6
}
export (String) var name = ""
export (TYPE) var type
export (int) var effect_damage_range = 0
export (int) var move_amount_addition
export (int) var move_dice_multiplyer

View File

@ -4,15 +4,17 @@
[resource]
script = ExtResource( 1 )
name = "Default"
type = 0
effect_damage_range = 0
move_amount_addition = 0
move_dice_multiplyer = 0
damage_amount_addition = 0
damage_dice_multiplyer = 1
damage_dice_multiplyer = 0
effects = [ ]
accepted_dice = [ ]
number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Damage Dice Roll"
description = "Default Description"

View File

@ -4,9 +4,11 @@
[resource]
script = ExtResource( 1 )
type = 3
name = "Magic Carving Knife"
type = 1
effect_damage_range = 0
move_amount_addition = 0
move_dice_multiplyer = 1
move_dice_multiplyer = 0
damage_amount_addition = 0
damage_dice_multiplyer = 0
effects = [ 4 ]
@ -15,4 +17,4 @@ number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Move Dice Roll + 1"
description = "Split your dice in half"

View File

@ -0,0 +1,21 @@
[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 )
name = "Poisonous apple"
type = 3
effect_damage_range = 3
move_amount_addition = 0
move_dice_multiplyer = 0
damage_amount_addition = 0
damage_dice_multiplyer = 0
effects = [ 0, 9 ]
accepted_dice = [ 0, 1 ]
number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Poison enemies and reroll your dice
Range: 3 spaces"

View File

@ -4,7 +4,9 @@
[resource]
script = ExtResource( 1 )
name = "Sprint"
type = 4
effect_damage_range = 0
move_amount_addition = 1
move_dice_multiplyer = 1
damage_amount_addition = 0
@ -15,4 +17,4 @@ number_of_dice = 1
same_dice_requirement = false
addition_dice = false
addition_amount = -1
description = "Move Dice Roll + 1"
description = "Move your dice roll + 1 spaces"