mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Minor bugfiixes (#140)
* Fixed moves bounced back by Magic Coat/Bounced moves affecting Pokemon they normally shouldn't * Fixed townmap compiler not saving any map names (doesn't make a difference; added for completionism) * Update a few ruby utilities * Fixed small typo bug in map renderer disposal
This commit is contained in:
@@ -26,22 +26,11 @@ class String
|
||||
return ['a', 'e', 'i', 'o', 'u'].include?(self[0, 1].downcase)
|
||||
end
|
||||
|
||||
def first(n = 1)
|
||||
return self[0...n]
|
||||
end
|
||||
def first(n = 1); return self[0...n]; end
|
||||
|
||||
def last(n = 1)
|
||||
return self[-n..-1] || self
|
||||
end
|
||||
def last(n = 1); return self[-n..-1] || self; end
|
||||
|
||||
def blank?
|
||||
blank = true
|
||||
s = self.scan(/./)
|
||||
for l in s
|
||||
blank = false if l != ""
|
||||
end
|
||||
return blank
|
||||
end
|
||||
def blank?; return self.strip.empty?; end
|
||||
|
||||
def cut(bitmap, width)
|
||||
string = self
|
||||
|
||||
Reference in New Issue
Block a user