Fluorohydride / ygopro-core

ygopro script engine.
MIT License
321 stars 135 forks source link

change counter_map to std::map<uint16, uint16> #597

Closed salix5 closed 2 months ago

salix5 commented 3 months ago

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=23486&keyword=&tag=-1&request_locale=ja

counter map

counters with COUNTER_WITHOUT_PERMIT:

ordinary counters:

Now temporary/permanent counter is determined by counter type. Keeping an array for every counter type is unnecessary.

change returns.svalue to uint16

The number of counter is uint16 (0~65535), and returns.svalue should be the same.

@mercury233 @purerosefallen