File: find_by_arch_name.py

package info (click to toggle)
crossfire-maps 1.75.0%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 275,656 kB
  • sloc: python: 7,711; sql: 92; sh: 73; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Crossfire

who = Crossfire.WhoAmI()
pl = Crossfire.WhoIsActivator()
msg = Crossfire.WhatIsMessage()

found = pl.CheckArchInventory(msg)

who.Say('check for find_arch_by_name')

if (found != None):
    who.Say('found %s'%found.Name)
else:
    who.Say('didn\'t find %s'%msg)