# US 11,992,775 B2 · Method and apparatus for processing resources

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,992,775 B2
- Document ID: US11992775B2
- Status: Granted
- Kind: B2
- Application number: 18/222,301
- Filed: 2023-07-14
- Published: 2023-11-02
- Granted: 2024-05-28
- Earliest claimed: 2021-01-22
- Assignees: Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Hao Feng
- Web page: https://patentgrep.com/patent/US11992775B2

## CPC

- A63F 13/58: by computing conditions of game characters, e.g. stamina, strength, motivation or energy level
- A63F 13/822: Strategy games; Role-playing games (A63F13/825, A63F13/828 take precedence)
- A63F 13/45: Controlling the progress of the video game
- A63F 13/69: by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
- A63F 13/837: Shooting of targets
- A63F: CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR

## Abstract

The present disclosure provides a method and apparatus for processing resources. The method comprises: in response to a trigger operation for supplementing first virtual resources, determining a current remaining resource amount of second virtual resources; then, when the remaining resource amount of the second virtual resources meets preset conditions, determining the consumption amount of the second virtual resources according to a resource amount conversion relationship between the first virtual resources and the second virtual resources, and the amount of the first virtual resources to be supplemented; and finally, according to the consumption amount of the second virtual resources and the amount of the first virtual resources to be supplemented, updating the remaining resource amounts of the first virtual resources and the second virtual resources. The embodiments of the present disclosure improve the fluency and continuity of a user operation, and simplify steps for supplementing the first virtual resources.

## Claims

### Claim 1

A computer-implemented method for improving fluency and consistency of operations in a computer game, comprising:
detecting whether an operation to supplement a first virtual resource is triggered by a target virtual character in the computer game;
determining a resource amount of a second virtual resource stored in a target device that is carried by the target virtual character in response to detecting the operation to supplement the first virtual resource triggered by the target virtual character, wherein the target device is an electric power supply device;
determining a consumption amount of the second virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource, and an optimal amount to supplement the first virtual resource in response to determining that the remaining resource amount of the second virtual resource meets a preset condition; p1 generating at least a part of the optimal amount of the first virtual resource to supplement the first virtual resource by utilizing the second virtual resource in the electric power supply device;
updating resource amounts of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the at least a part of the optimal to be supplemented amount of the first virtual resource;
wherein the computer-implemented method further comprises:
displaying, at a second virtual resource management interface, raw material information collected by the target virtual character; and
in response to a selection operation for at least one raw material in the raw material information, turning on a virtual electric power generation apparatus to convert the at least one raw material into electric power for powering the electric power supply device.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the first virtual resource is a combat resource, and the second virtual resource is an electric power resource.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first virtual resource is an ammunition resource;
determining the current remaining resource amount of the second virtual resource in response to the trigger operation to supplement the first virtual resource comprises:
determining a remaining electricity quantity of an electric power supply device carried by the target virtual character in response to an ammunition-changing trigger operation for a target virtual appliance manipulated by the target virtual character;
determining the consumption amount of the second virtual resource according to the resource amount conversion relationship between the first virtual resource and the second virtual resource and the to-be-supplemented amount of the first virtual resource in the case that the remaining resource amount of the second virtual resource satisfies the preset condition comprises:
determining an electric power consumption amount according to an ammunition amount required for the target virtual appliance to change one time, and a resource amount conversion relationship between the ammunition amount and the electricity quantity in a case where the remaining electricity quantity of the electric power supply device meets a preset condition; and
updating the remaining resource amounts of the first virtual resource and the second virtual resource according to the consumption amount of the second virtual resource and the to-be-supplemented amount of the first virtual resource comprises:
updating the ammunition amount of the target virtual appliance after ammunition changing and the remaining electricity quantity of the electric power supply device, according to the determined electric power consumption amount and the ammunition amount required for the target virtual appliance to change one time.

### Claim 4 (depends on 2)

The method according to claim 2, further comprising:
inputting the converted electric power into a virtual storage battery; and
powering the electric power supply device by the virtual storage battery.

### Claim 5 (depends on 4)

The method according to claim 4, further comprising:
updating a remaining electricity quantity after the virtual storage battery outputs electric power, and a remaining electricity quantity of the electric power supply device after electric power supplementation, in response to an electric power supplementation operation for the electric power supply device after the target virtual character reaches a position area where the virtual storage battery is located.

### Claim 6 (depends on 1)

The method according to claim 1, wherein when updating the remaining resource amounts of the first virtual resource and the second virtual resource, the method further comprises:
displaying special-effect data supplementing the first virtual resource for a target virtual character.

### Claim 7 (depends on 4)

The method according to claim 4, wherein the virtual storage battery is also configured to power at least one other virtual object other than the target device; the method further comprises:
in response to a task execution operation for the virtual object, enabling the virtual object, displaying a task execution special effect corresponding to the task execution operation, and updating a remaining electricity quantity after the virtual storage battery powers the virtual object.

### Claim 8

An electronic device, comprising: a processor and a memory wherein the memory stores machine-readable instructions executable by the processor, and wherein the machine-readable instructions, when executed by the processor, cause the processor to perform operations comprising:
detecting whether an operation to supplement a first virtual resource is triggered by a target virtual character in the computer game;
determining a resource amount of a second virtual resource stored in a target device that is carried by the target virtual character in response to detecting the operation to supplement the first virtual resource triggered by the target virtual character, wherein the target device is an electric power supply device;
determining a consumption amount of the second virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource, and an optimal amount to supplement the first virtual resource in response to determining that the remaining resource amount of the second virtual resource meets a preset condition;
generating at least a part of the optimal amount of the first virtual resource to supplement the first virtual resource by utilizing the second virtual resource in the electric power supply device;
updating resource amounts of the first virtual resource and the second virtual resource according to-based on the consumption amount of the second virtual resource and the at least a part of the optimal to be supplemented amount of the first virtual resource;
wherein the operations further comprise:
displaying, at a second virtual resource management interface, raw material information collected by the target virtual character; and
in response to a selection operation for at least one raw material in the raw material information, turning on a virtual electric power generation apparatus to convert the at least one raw material into electric power for powering the electric power supply device.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the first virtual resource is a combat resource, and the second virtual resource is an electric power resource.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the first virtual resource is an ammunition resource;
determining the current remaining resource amount of the second virtual resource in response to the trigger operation to supplement the first virtual resource comprises:
determining a remaining electricity quantity of an electric power supply device carried by the target virtual character in response to an ammunition-changing trigger operation for a target virtual appliance manipulated by the target virtual character;
determining the consumption amount of the second virtual resource according to the resource amount conversion relationship between the first virtual resource and the second virtual resource and the to-be-supplemented amount of the first virtual resource in the case that the remaining resource amount of the second virtual resource satisfies the preset condition comprises:
determining an electric power consumption amount according to an ammunition amount required for the target virtual appliance to change one time, and a resource amount conversion relationship between the ammunition amount and the electricity quantity in a case where the remaining electricity quantity of the electric power supply device meets a preset condition; and
updating the remaining resource amounts of the first virtual resource and the second virtual resource according to the consumption amount of the second virtual resource and the to-be-supplemented amount of the first virtual resource comprises:
updating the ammunition amount of the target virtual appliance after ammunition changing and the remaining electricity quantity of the electric power supply device, according to the determined electric power consumption amount and the ammunition amount required for the target virtual appliance to change one time.

### Claim 11 (depends on 9)

The electronic device according to claim 9, the operations further comprising:
inputting the converted electric power into a virtual storage battery; and
powering the electric power supply device by the virtual storage battery.

### Claim 12 (depends on 11)

The electronic device according to claim 11, the method operations further comprising:
updating a remaining electricity quantity after the virtual storage battery outputs electric power, and a remaining electricity quantity of the electric power supply device after electric power supplementation, in response to an electric power supplementation operation for the electric power supply device after the target virtual character reaches a position area where the virtual storage battery is located.

### Claim 13 (depends on 8)

The electronic device according to claim 8, wherein when updating the remaining resource amounts of the first virtual resource and the second virtual resource, the operations further comprise:
displaying special-effect data supplementing the first virtual resource for a target virtual character.

### Claim 14 (depends on 11)

The electronic device according to claim 11, wherein the virtual storage battery is also configured to power at least one other virtual object other than the target device; the operations further comprise:
in response to a task execution operation for the virtual object, enabling the virtual object, displaying a task execution special effect corresponding to the task execution operation, and updating a remaining electricity quantity after the virtual storage battery powers the virtual object.

### Claim 15

A non-transitory computer-readable storage medium, stored with a computer program therein, the computer program, when executed by a processor, cause the processor to perform operations comprising:
detecting whether an operation to supplement a first virtual resource is triggered by a target virtual character in the computer game;
determining a resource amount of a second virtual resource stored in a target device that is carried by the target virtual character in response to detecting the operation to supplement the first virtual resource triggered by the target virtual character, wherein the target device is an electric power supply device;
determining a consumption amount of the second virtual resource based on a resource amount conversion relationship between the first virtual resource and the second virtual resource, and an optimal amount to supplement the first virtual resource in response to determining that the remaining resource amount of the second virtual resource meets a preset condition;
generating at least a part of the optimal amount of the first virtual resource to supplement the first virtual resource by utilizing the second virtual resource in the electric power supply device;
updating resource amounts of the first virtual resource and the second virtual resource based on the consumption amount of the second virtual resource and the at least a part of the optimal amount of the first virtual resource;
wherein the operations further comprise:
displaying, at a second virtual resource management interface, raw material information collected by the target virtual character; and
in response to a selection operation for at least one raw material in the raw material information, turning on a virtual electric power generation apparatus to convert the at least one raw material into electric power for powering the electric power supply device.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the first virtual resource is a combat resource, and the second virtual resource is an electric power resource.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium according to claim 16, wherein the first virtual resource is an ammunition resource;
determining the current remaining resource amount of the second virtual resource in response to the trigger operation to supplement the first virtual resource comprises:
determining a remaining electricity quantity of an electric power supply device carried by the target virtual character in response to an ammunition-changing trigger operation for a target virtual appliance manipulated by the target virtual character;
determining the consumption amount of the second virtual resource according to the resource amount conversion relationship between the first virtual resource and the second virtual resource and the to-be-supplemented amount of the first virtual resource in the case that the remaining resource amount of the second virtual resource satisfies the preset condition comprises:
determining an electric power consumption amount according to an ammunition amount required for the target virtual appliance to change one time, and a resource amount conversion relationship between the ammunition amount and the electricity quantity in a case where the remaining electricity quantity of the electric power supply device meets a preset condition; and
updating the remaining resource amounts of the first virtual resource and the second virtual resource according to the consumption amount of the second virtual resource and the to-be-supplemented amount of the first virtual resource comprises:
updating the ammunition amount of the target virtual appliance after ammunition changing and the remaining electricity quantity of the electric power supply device, according to the determined electric power consumption amount and the ammunition amount required for the target virtual appliance to change one time.
