3.0.0 final touches (#84)

---------

Co-authored-by: cajun <12363371+CajunAvenger@users.noreply.github.com>
This commit is contained in:
GenevensiS
2024-10-01 15:42:16 +02:00
committed by GitHub
parent 106e343851
commit 6960d85314
775 changed files with 2509 additions and 2817 deletions

View File

@@ -1,9 +1,4 @@
############################################################## Card fields
############################################################## Frame building modules
depends on:
package: magic-modules.mse-include
version: 2024-05-20
############################################################## Automated fields
############################################################## Card shape
card field:
@@ -2078,6 +2073,28 @@ card field:
card list width: 150
default: stylesheet; text_filter_default(value, card_name: card_name_for_level(22), margin_code:"lv22")
script: text_filter(value, card_name: card_name_for_level(22), margin_code:"lv22")
card field:
type: text
name: level 23 text
description: The twenty-third level text of the card.
show statistics: false
multi line: true
card list name: Level 23 text
card list column: 0822
card list width: 150
default: stylesheet; text_filter_default(value, card_name: card_name_for_level(23), margin_code:"lv23")
script: text_filter(value, card_name: card_name_for_level(23), margin_code:"lv23")
card field:
type: text
name: level 24 text
description: The twenty-fourth level text of the card.
show statistics: false
multi line: true
card list name: Level 24 text
card list column: 0823
card list width: 150
default: stylesheet; text_filter_default(value, card_name: card_name_for_level(24), margin_code:"lv24")
script: text_filter(value, card_name: card_name_for_level(24), margin_code:"lv24")
############################################################## PT
############################################################## Power

View File

@@ -0,0 +1,4 @@
include file: keywords_custom
## this file won't ever be updated
## you can safely made your own global addons to the mse script here

View File

@@ -5,19 +5,19 @@ installer group: magic/game files
icon: card-back.png
position hint: 01
version: 2020-04-25
version: 2024-10-01
depends on:
package: magic-blends.mse-include
version: 2014-06-25
version: 2024-10-01
depends on:
package: magic-watermarks.mse-include
version: 2007-09-23
package: magic-modules.mse-include
version: 2024-10-01
############################################################## The script
############################################################## Load the main scripts
init script: include file: script
############################################################## Lots of lists
############################################################## Load all the fields and lists
################## There be dragons here. -Liosan ##########################
include file: card_fields
@@ -26,22 +26,27 @@ include file: statistics
include file: add_cards_scripts
include file: packs
include file: keywords
include file: keywords_custom
include file: word_lists
include file: auto_replace
#### Add/overwrite things in this file rather than editing the above files
include file: custom_addons
############################################################## Other stuff
#### Determine the color in the card columns
card list color script:
input := card.card_color
if input == "white" then rgb(156,130,90)
else if input == "blue" then rgb(0,64,168)
else if input == "black" then rgb(0,0,0)
else if input == "red" then rgb(168,0,0)
else if input == "green" then rgb(0,168,0)
else if input == "pink" then rgb(210,60,140)
if input == "white" then rgb(156,130,90)
else if input == "blue" then rgb(0,64,168)
else if input == "black" then rgb(0,0,0)
else if input == "red" then rgb(168,0,0)
else if input == "green" then rgb(0,168,0)
else if input == "pink" then rgb(210,60,140)
else if input == "purple" then rgb(150,100,160)
else if input == "yellow" then rgb(190,200,50)
else if input == "brown" then rgb(51, 10, 0)
else if input == "orange" then rgb(255, 51, 0)
else (
artifact := chosen(choice:"artifact")
land := chosen(choice:"land")

View File

@@ -330,7 +330,7 @@ keyword:
keyword: Provoke
match: Provoke
mode: expert
reminder: Whenever this creature this attacks, you may have target creature defending player controls untap and block it if able.
reminder: Whenever this creature attacks, you may have target creature defending player controls untap and block it if able.
# Scourge
keyword:
keyword: Typecycling

View File

@@ -33,7 +33,7 @@ include file: language
include file: statistics_script
include file: /magic-blends.mse-include/new-blends
############################################################## Versioning
version_date := {"2024-09-23 Template Pack 3.0.0-i Showcase Catchup: Room Frame"}
version_date := {"2024-10-01 Template Pack 3.0.0: Magic Modules & Showcase Catchup"}
version := version_date
############################################################## Common filters
############################################################## Utility
@@ -3318,6 +3318,10 @@ card_symbol_width_3 := { card_symbol_width( face:card_symbol_face_3(), offset:c
card_symbol_height_3 := { card_symbol_height(face:card_symbol_face_3(), offset:card_symbol_offset_height_3()) }
############################################################## Loyalty costs
#### frames can conditionally use the loyalty module
loyalty_has_abilities_1 := { mainframe_walker() }
loyalty_has_abilities_2 := { mainframe_walkerb() }
loyalty_has_abilities_3 := { mainframe_walkerc() }
use_tall_walker_frame_1 :=
{
count := loyalty_abilities_count(instance: 1, active:true)
@@ -3508,7 +3512,8 @@ loyalty_cost_r_width := { 24 * r_width() }
loyalty_cost_r_height := { 20 * r_height() }
loyalty_cost_r_correction :=
{
cost := card["loyalty_cost_box_" + input]
box := input + 8*(instance-1)
cost := card["loyalty_cost_box_" + box]
if contains(cost, match: "+") or contains(cost, match: "anti ult") then -1 * r_height()
else if contains(cost, match: "-") or contains(cost, match: "ult") then -5 * r_height()
else -3 * r_height()
@@ -3516,7 +3521,7 @@ loyalty_cost_r_correction :=
loyalty_cost_font_size := { 13 * (loyalty_cost_r_height() + 0.8*loyalty_cost_offset_height())/20 }
loyalty_cost_box_left := { loyalty_ability_left() - 36 * r_width() + loyalty_cost_offset_left() - loyalty_cost_offset_width() }
loyalty_cost_box_top := { loyalty_ability_center(input) - loyalty_cost_box_r_height()/2 + loyalty_cost_move(input) + loyalty_cost_offset_top() - loyalty_cost_offset_height() }
loyalty_cost_box_top := { round_near(loyalty_ability_center(input) - loyalty_cost_box_r_height()/2 + loyalty_cost_move(input) + loyalty_cost_offset_top() - loyalty_cost_offset_height()) }
loyalty_cost_box_width := { loyalty_cost_box_r_width() + 2*loyalty_cost_offset_width() }
loyalty_cost_box_height := { if loyalty_abilities_count() >= input then loyalty_cost_box_r_height() + 2*loyalty_cost_offset_height() else 0 }
loyalty_cost_box_r_width := { 47 * r_width() }
@@ -3854,8 +3859,8 @@ rarity_width :=
map := face_coordinates_map(face)
user_offsets := styling.rarity_offsets or else ""
if map.width > map.height then
22 * map.width/523 + offset + 2*rarity_user_offset_width(user_offsets)
else 22 * map.width/375 + offset + 2*rarity_user_offset_width(user_offsets)
44 * map.width/523 + offset + 2*rarity_user_offset_width(user_offsets)
else 44 * map.width/375 + offset + 2*rarity_user_offset_width(user_offsets)
}
rarity_height :=
{

View File

@@ -287,7 +287,7 @@ set field:
set field:
type: info
name: Card stamps. Not universally supported yet.
name: Card Stamps
set field:
type: choice
name: default stamp
@@ -317,52 +317,52 @@ set field:
set field:
type: text
name: custom watermark 1
description: Set this image in magic-watermarks.mse-include as Custom Watermark 1. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 1. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 2
description: Set this image in magic-watermarks.mse-include as Custom Watermark 2. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 2. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 3
description: Set this image in magic-watermarks.mse-include as Custom Watermark 3. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 3. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 4
description: Set this image in magic-watermarks.mse-include as Custom Watermark 4. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 4. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 5
description: Set this image in magic-watermarks.mse-include as Custom Watermark 5. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 5. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 6
description: Set this image in magic-watermarks.mse-include as Custom Watermark 6. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 6. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 7
description: Set this image in magic-watermarks.mse-include as Custom Watermark 7. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 7. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 8
description: Set this image in magic-watermarks.mse-include as Custom Watermark 8. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 8. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 9
description: Set this image in magic-watermarks.mse-include as Custom Watermark 9. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 9. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: text
name: custom watermark 10
description: Set this image in magic-watermarks.mse-include as Custom Watermark 10. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
description: Set this image in magic-mainframe-extras.mse-include as Custom Watermark 10. If smaller than 500x500, add ";length;height;" to the end, ex ".png;400;400;"
script: verify_watermark_image(value)
set field:
type: choice