Skip to content

DeckBuilder

Divided by Zer0 edited this page Mar 9, 2022 · 11 revisions

DeckBuilder

Extends: CardViewer < PanelContainer

Description

A Deckbuilder which allows players to construct, save and load decks to use in the game

Property Descriptions

deck_name_randomizer

export var deck_name_randomizer = "[Object:null]"

Contains a link to the random deck name generator reference

random_adverb_miss

export var random_adverb_miss: int = 10

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not.

random_adjective_miss

export var random_adjective_miss: float = 1.1

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective

random_append_miss

export var random_append_miss: int = 2

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append

second_noun_miss

export var second_noun_miss: int = 3

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append Controls how often a second noun will appear in the name. The higher the number, the less likely a second nount to appear

max_quantity

export var max_quantity: int = 3

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append Controls how often a second noun will appear in the name. The higher the number, the less likely a second nount to appear The maximum amount of each card allowed in a deck. Individual cards can modify this

deck_minimum

export var deck_minimum: int = 52

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append Controls how often a second noun will appear in the name. The higher the number, the less likely a second nount to appear The maximum amount of each card allowed in a deck. Individual cards can modify this The minimum amount cards required in a deck

deck_maximum

export var deck_maximum: int = 60

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append Controls how often a second noun will appear in the name. The higher the number, the less likely a second nount to appear The maximum amount of each card allowed in a deck. Individual cards can modify this The minimum amount cards required in a deck The maximum amount cards required in a deck

deck_card_object_scene

export var deck_card_object_scene = "[PackedScene:19433]"

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append Controls how often a second noun will appear in the name. The higher the number, the less likely a second nount to appear The maximum amount of each card allowed in a deck. Individual cards can modify this The minimum amount cards required in a deck The maximum amount cards required in a deck We use this variable, so that the scene can be overriden with a custom one

deck_summary_scene

export var deck_summary_scene = "[PackedScene:19447]"

Contains a link to the random deck name generator reference Controls how often an random adverb will not appear in front of the adjective. The higher the number, the less likely to get an adverb Adverbs will not appear if adjectives did not. Controls how often an random adjective will not appear in front of the noun. The higher the number, the less likely to get an adjective Controls how often an random append will not appear in front of the deck name. The higher the number, the less likely to get an append Controls how often a second noun will appear in the name. The higher the number, the less likely a second nount to appear The maximum amount of each card allowed in a deck. Individual cards can modify this The minimum amount cards required in a deck The maximum amount cards required in a deck We use this variable, so that the scene can be overriden with a custom one We use this variable, so that the scene can be overriden with a custom one

deck_summaries

var deck_summaries

This var will hold a pointer to the deck summaries scene.

Method Descriptions

populate_available_cards

func populate_available_cards() -> void

Populates the list of available cards, with all defined cards in the game

add_new_card

func add_new_card(card_name, category, value) -> DBDeckCardObject

Adds a card to the deck. Ensures that the card is put under its own category for readability

generate_random_deck_name

func generate_random_deck_name() -> String

Generates a random deck name using on the deck_name_randomizer

Clone this wiki locally