This commit is contained in:
aozhiwei 2022-12-04 12:02:35 +08:00
parent 3165716f90
commit 5f17cecd1e
4 changed files with 4 additions and 11 deletions

View File

@ -94,19 +94,11 @@ void Android::GiveEquip()
}
}
void Android::SetAiLevel(int ai_level)
{
}
void Android::RandSkin()
{
if (!robot_meta->skin_id.empty()) {
Skin& skin = skins[0];
#if 1
skin.skin_id = 1 + (robot_meta->i->id() % 3);
#else
skin.skin_id = robot_meta->skin_id[rand() % robot_meta->skin_id.size()];
#endif
skin.skin_lv = 1;
}
}

View File

@ -7,7 +7,6 @@ namespace MetaData
class Robot;
}
class AIComponent;
class Android : public Human
{
public:
@ -17,7 +16,6 @@ class Android : public Human
virtual void Initialize() override;
virtual void Update(int delta_time) override;
void GiveEquip();
void SetAiLevel(int ai_level);
protected:
Android();

View File

@ -4,7 +4,6 @@
#include "roomentity.h"
#include "movehelper.h"
class AIComponent;
class MoveableEntity : public RoomEntity
{
public:

View File

@ -3762,7 +3762,9 @@ void Room::InitAndroidAI()
int ai_level = std::get<0>(tuple);
int space = std::get<1>(tuple);
if (rnd <= space) {
#if 0
hum->SetAiLevel(ai_level);
#endif
++ai_num[ai_level];
found = true;
break;
@ -3770,7 +3772,9 @@ void Room::InitAndroidAI()
}
if (!found) {
int ai_level = 1;
#if 0
hum->SetAiLevel(ai_level);
#endif
++ai_num[ai_level];
}
#ifdef DEBGU