remove Object.hasNature

This commit is contained in:
Spmario233 2023-10-28 22:15:52 +08:00
parent 199cb93bbd
commit 57c1c7c09a
1 changed files with 0 additions and 17 deletions

View File

@ -8827,23 +8827,6 @@
return list[0];
}
});
/**
* @deprecated
* !!!WARNING!!!
* Will be deprecated in next verision!
* Use {@link VCard#hasNature} instead.
*/
Object.defineProperty(Object.prototype,'hasNature',{
configurable:true,
enumerable:false,
writable:true,
value:function(nature,player){
var natures=get.natureList(this,player);
if(!nature) return natures.length>0;
if(nature=='linked') return natures.some(n=>lib.linked.includes(n));
return get.is.sameNature(natures,nature);
}
});
window.onkeydown=function(e){
if(!ui.menuContainer||!ui.menuContainer.classList.contains('hidden')){
if(e.keyCode==116||((e.ctrlKey||e.metaKey)&&e.keyCode==82)){