I've always wanted to give the "gun" a miniscule chance to actually fire.
Or activating it toward someone would cause them to play along.
truth whipofthievery::CleptiaHelps(ccharacter* Enemy, ccharacter* Hitter) const { if(Enemy->IsImmuneToWhipOfThievery() || !Enemy->GetMainWielded() || GetMainMaterial()->GetFlexibility() <= 5) return false; if(Hitter->IsPlayer()) { if(game::GetGod(CLEPTIA)->GetRelation() < 0) return false; //if your relationship with Cleptia is below 0, you cannot steal with the whip at all else return !RAND_N(10 - game::GetGod(CLEPTIA)->GetRelation() / 200); } else return !RAND_N(10); }
truth whipofthievery::HitEffect(character* Enemy, character* Hitter, v2 HitPos, int BodyPartIndex, int Direction, truth BlockedByArmour) { truth BaseSuccess = meleeweapon::HitEffect(Enemy, Hitter, HitPos, BodyPartIndex, Direction, BlockedByArmour); if(!IsBroken() && Enemy->IsEnabled() && Hitter && [b]CleptiaHelps(Enemy, Hitter)[/b]) //the above checks whether the whip is broken, whether the enemy is immune to stealing, whether there's a person swinging the whip, and lastly whether Cleptia's relationship with the player is strong enough to deploy the steal action { if(Hitter->IsPlayer()) { game::DoEvilDeed(10); //make player more chaotic game::GetGod(CLEPTIA)->AdjustRelation(10); //increase relationship with Cleptia } Enemy->GetMainWielded()->MoveTo(GetLSquareUnder()->GetStack()); // this is the part where it steals the weapon return true; } else return BaseSuccess; }
System would indicate in graphic if person is mounted on horse or not. Same system also show if person mounted on boar, elephant, polar bear etc. Or if person mounted on ass. Ivan find mounting on ass funny.