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

@@ -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 :=
{