35 lines
901 B
GDScript3
35 lines
901 B
GDScript3
|
|
class_name HardCards extends Node
|
||
|
|
|
||
|
|
static var all_cards: Array[Dictionary] = [
|
||
|
|
{
|
||
|
|
"out-of-world": ["unique", "few_friends", []],
|
||
|
|
"rejection": ["finding_friends", "laughed", []],
|
||
|
|
"confusion": ["inner_conflict", "outer_conflict", []]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"homework": ["good_grades", "upset_teachers", []],
|
||
|
|
"teachers": ["volunteering", "becoming_teacher", []],
|
||
|
|
"joy": ["worried_mother", "thomas_gifted", []]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"comic_heroes": ["effort", "thomas_gifted", []],
|
||
|
|
"boy_stuff": ["pretending", "girls", []],
|
||
|
|
"teasing": ["stubborn", "good_intended", []]
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"jui_jutsu": ["body", "girly", []],
|
||
|
|
"void": ["wet", "stop", []],
|
||
|
|
"hit": ["confidence", "vent", []]
|
||
|
|
},
|
||
|
|
]
|
||
|
|
|
||
|
|
|
||
|
|
static func get_cards_by_scene_id(id: int) -> Array:
|
||
|
|
var output:Array
|
||
|
|
|
||
|
|
for card_name in all_cards[id].keys():
|
||
|
|
var card_id:StringName = "%d.%s" % [id, card_name]
|
||
|
|
output.append(Card.new(card_name, card_id))
|
||
|
|
|
||
|
|
return output
|