/** 获取破处者id*
@returns {number}*/
Game_Actor.prototype.pczId = function() {
return hsyf04pczid[this.actorId()]
};
/** 设置破处者id* @returns {number}*/
Game_Actor.prototype.setpczId = function(id) {
hsyf04pczid[this.actorId()]=id;
};
//自定义绘制变量值/多人基础参数
Window_MenuStatus.prototype.drawbl = function(actor, x, y,blid) {
var blid=blid||1; //防错
if (hsyf04jm) { //当只有1个角色的解密类游戏时
if (blid ==10){
if (!$gameVariables.value(blid)||$gameVariables.value(blid)==0) this.drawText("破处者: "+"暂无", x, y, 222);
if ($gameVariables.value(blid)>0) this.drawText("破处者: "+$gameActors.actor($gameVariables.value(blid)).name(), x, y, 222);//绘制一个方法在忘写后缀()时会出现绘制"整个方法代码"的BUG!
//#[[[当使用xx暂存=new xx 获得副本后(如这里的actor/$gameActors),这个暂存使用自己的方法时 等同this不能加.prototype.会报错找不到!!!]]]
}else if (blid ==1){
this.drawText("知识: "+$gameVariables.value(blid), x, y, 222);
}else if (blid ==2){
this.drawText("体能: "+$gameVariables.value(blid), x, y, 222);
}else if (blid ==3){
this.drawText("欲望: "+$gameVariables.value(blid), x, y, 222);
}else if (blid ==4){
this.drawText("魅力: "+$gameVariables.value(blid), x, y, 222);
}else if (blid ==5){
this.drawText("开放值: "+$gameVariables.value(blid), x, y, 222);
}else //if (blid ==6) //更多扩展
{
//this.drawText("xxx: "+$gameVariables.value(blid), x, y, 222);
//}else{
this.drawText("压力值: "+$gameVariables.value(blid), x, y, 222);
}
}else{//当只有1个角色的解密类游戏时
//否则调用当前角色的数据库-职业前6个基本参数
if (blid ==10){
if (!actor.pczId()||actor.pczId()==0) this.drawText("破处者: "+"暂无", x, y, 222);
//写不下,后面接