Add awakening output to templates

This commit is contained in:
Justin Edmund 2022-12-21 00:49:44 -08:00
parent bb0e596e0d
commit 464ea98d6d
3 changed files with 20 additions and 5 deletions

View file

@ -2,8 +2,15 @@ attributes :id,
:party_id, :party_id,
:position, :position,
:uncap_level, :uncap_level,
:perpetuity :perpetuity,
node :object do |c| node :object do |c|
partial("characters/base", :object => c.character) partial("characters/base", :object => c.character)
end end
node :awakening do |c|
{
:type => c.awakening_type,
:level => c.awakening_level
}
end

View file

@ -24,4 +24,11 @@ node :ax, :if => lambda { |w| w.weapon.ax > 0 } do |w|
:strength => w.ax_strength2 :strength => w.ax_strength2
} }
] ]
end end
node :awakening, :if => lambda { |w| w.weapon.awakening } do |w|
{
:type => w.awakening_type,
:level => w.awakening_level
}
end

View file

@ -9,7 +9,8 @@ attributes :id,
:limit, :limit,
:rarity, :rarity,
:series, :series,
:ax :ax,
:awakening
node :name do |w| node :name do |w|
{ {
@ -41,4 +42,4 @@ node :atk do |w|
:max_atk_flb => w.max_atk_flb, :max_atk_flb => w.max_atk_flb,
:max_atk_ulb => w.max_atk_ulb :max_atk_ulb => w.max_atk_ulb
} }
end end