打开/关闭搜索
搜索
打开/关闭菜单
2529
2489
5
4.4万
Corruption of Champions II Bilingual Wiki
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
上传文件
打开/关闭外观设置菜单
无法加载偏好设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
中文(简体)
个人工具
登录
查看“︁Engine”︁的源代码
来自Corruption of Champions II Bilingual Wiki
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
Engine
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于这些用户组的用户执行:
用户
、
管理员
、translationadmin
您可以查看和复制此页面的源代码。
This page details the internal workings of the CoC 2 engine __TOC__ == Basic Details == Unlike [https://wiki.smutosaur.us/CoC/Main_Page Corruption of Champions], which was written in [[wikipedia:ActionScript#ActionScript 3.0 | Action Script 3.0]], [[Main Page | Corruption of Champions 2]] is written in [[wikipedia:Javascript | Javascript]], allowing for easier cross-platform support. The engine itself pulls heavily from the original Corruption of Champions, with data structures remaining almost identical. The functionality has been rewritten for Javascript. == Data Structures == {|class="wikitable" |+ Character ! Property !! Type !! Description !! Notes |- | <code>name</code> || <code>string</code> || Character name|| |- | <code>cName</code> || <code>string?</code> || Unknown || |- | <code>soloCombatPrefix</code> || <code>string</code> || Used in combat somewhere, presumably prefixing some element of combat text || |- | <code>reagents</code> || <code>Object<number, number></code> || [[Reagents]] (ingredients) currently held by the character || {|class="wikitable" |+ Reagent Numberings ! Key !! Reagent Name |- | 1 || [[Reagents#Mandrake Root | Mandrake Root]] |- | 2 || [[Reagents#Yew Branch | Yew Branch]] |- | 3 || [[Reagents#Soft Mud | Soft Mud]] |- | 4 || [[Reagents#Laurel Sprig | Laurel Sprig]] |- | 5 || [[Reagents#Tall Reed | Tall Reed]] |- | 6 || [[Reagents#Turgid Mushroom | Turgid Mushroom]] |- | 7 || [[Reagents#Sweet Cream | Sweet Cream]] |- | 8 || [[Reagents#Chestnut | Chestnut ]] |- | 9 || [[Reagents#Wild Melon | Wild Melon]] |- | 10 || [[Reagents#Juicy Peach | Juicy Peach]] |- | 11 || [[Reagents#Lush Orchid | Lush Orchid]] |- | 12 || [[Reagents#Musky Sap | Musky Sap]] |- | 13 || [[Reagents#Motherwort | Motherwort]] |} |} == Variables == Below are important variables. === Player Party (<code>window.PlayerParty</code>) === {|class="wikitable" ! Javascript Variable Name !! Type !! Description !! Notes |- | <code>PlayerParty.members</code> || Array || Array of characters in the players party. Player Character is stored at index <code>0</code> || |} === Player Variables (<code>window.PlayerParty.members[0]</code>) ===
返回
Engine
。
查看“︁Engine”︁的源代码
来自Corruption of Champions II Bilingual Wiki