Fluorohydride / ygopro-core

ygopro script engine.
MIT License
327 stars 134 forks source link

update Card.GetOriginalCode, Card.GetOriginalCodeRule, Card.IsOriginalCodeRule #531

Closed salix5 closed 9 months ago

salix5 commented 9 months ago

@mercury233 @purerosefallen Simplify card::get_code(), card::get_another_code()

card::second_code Now cards with 2 original name are checked by looking up this table.

data.code This is the id in card database, which might be an id of alternative artwork.

The types of card id are:

The Lua table id: card::get_original_code() code_rule1, code_rule2: card::get_original_code_rule()

Now data.code is not sent to Lua functions directly.